-
- All Known Implementing Classes:
DefaultHttp2HeadersEncoder
@UnstableApi public interface Http2HeadersEncoder
EncodesHttp2Headers
into HPACK-encoded headers blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Http2HeadersEncoder.Configuration
Configuration related elements for theHttp2HeadersEncoder
interfacestatic interface
Http2HeadersEncoder.SensitivityDetector
Determine if a header name/value pair is treated as sensitive.
-
Field Summary
Fields Modifier and Type Field Description static Http2HeadersEncoder.SensitivityDetector
ALWAYS_SENSITIVE
Always returntrue
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.static Http2HeadersEncoder.SensitivityDetector
NEVER_SENSITIVE
Always returnfalse
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Http2HeadersEncoder.Configuration
configuration()
Get theHttp2HeadersEncoder.Configuration
for thisHttp2HeadersEncoder
void
encodeHeaders(int streamId, Http2Headers headers, Buffer 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 returnfalse
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.
-
ALWAYS_SENSITIVE
static final Http2HeadersEncoder.SensitivityDetector ALWAYS_SENSITIVE
Always returntrue
forHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.
-
-
Method Detail
-
encodeHeaders
void encodeHeaders(int streamId, Http2Headers headers, Buffer buffer) throws Http2Exception
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
-
-