Package io.netty.handler.codec.http2
Interface Http2HeadersEncoder
- All Known Implementing Classes:
DefaultHttp2HeadersEncoder
Encodes
Http2Headers
into HPACK-encoded headers blocks.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Configuration related elements for theHttp2HeadersEncoder
interfacestatic interface
Determine if a header name/value pair is treated as sensitive. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2HeadersEncoder.SensitivityDetector
Always returntrue
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.static final Http2HeadersEncoder.SensitivityDetector
Always returnfalse
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
. -
Method Summary
Modifier and TypeMethodDescriptionGet theHttp2HeadersEncoder.Configuration
for thisHttp2HeadersEncoder
void
encodeHeaders
(int streamId, Http2Headers headers, ByteBuf buffer) Encodes the given headers and writes the output headers block to the given output buffer.
-
Field Details
-
NEVER_SENSITIVE
Always returnfalse
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
. -
ALWAYS_SENSITIVE
Always returntrue
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.
-
-
Method Details
-
encodeHeaders
Encodes 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.Configuration
for thisHttp2HeadersEncoder
-