Package io.netty.handler.codec.http2
Interface Http2HeadersEncoder
-
- All Known Implementing Classes:
DefaultHttp2HeadersEncoder
public interface Http2HeadersEncoderEncodesHttp2Headersinto HPACK-encoded headers blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHttp2HeadersEncoder.ConfigurationConfiguration related elements for theHttp2HeadersEncoderinterfacestatic interfaceHttp2HeadersEncoder.SensitivityDetectorDetermine if a header name/value pair is treated as sensitive.
-
Field Summary
Fields Modifier and Type Field Description static Http2HeadersEncoder.SensitivityDetectorALWAYS_SENSITIVEAlways returntrueforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).static Http2HeadersEncoder.SensitivityDetectorNEVER_SENSITIVEAlways returnfalseforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Http2HeadersEncoder.Configurationconfiguration()Get theHttp2HeadersEncoder.Configurationfor thisHttp2HeadersEncodervoidencodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer)Encodes the given headers and writes the output headers block to the given output buffer.
-
-
-
Field Detail
-
NEVER_SENSITIVE
static final Http2HeadersEncoder.SensitivityDetector NEVER_SENSITIVE
Always returnfalseforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).
-
ALWAYS_SENSITIVE
static final Http2HeadersEncoder.SensitivityDetector ALWAYS_SENSITIVE
Always returntrueforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).
-
-
Method Detail
-
encodeHeaders
void encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) throws Http2ExceptionEncodes the given headers and writes the output headers block to the given output buffer.- Parameters:
streamId- the identifier of the stream for which the headers are encoded.headers- the headers to be encoded.buffer- the buffer to receive the encoded headers.- Throws:
Http2Exception
-
configuration
Http2HeadersEncoder.Configuration configuration()
Get theHttp2HeadersEncoder.Configurationfor thisHttp2HeadersEncoder
-
-