@UnstableApi public interface Http2HeadersEncoder
Http2Headers
into HPACK-encoded headers blocks.限定符和类型 | 接口和说明 |
---|---|
static interface |
Http2HeadersEncoder.Configuration
Configuration related elements for the
Http2HeadersEncoder interface |
static interface |
Http2HeadersEncoder.SensitivityDetector
Determine if a header name/value pair is treated as
sensitive.
|
限定符和类型 | 字段和说明 |
---|---|
static Http2HeadersEncoder.SensitivityDetector |
ALWAYS_SENSITIVE
Always return
true for Http2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence) . |
static Http2HeadersEncoder.SensitivityDetector |
NEVER_SENSITIVE
Always return
false for Http2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence) . |
限定符和类型 | 方法和说明 |
---|---|
Http2HeadersEncoder.Configuration |
configuration()
Get the
Http2HeadersEncoder.Configuration for this Http2HeadersEncoder |
void |
encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.
|
static final Http2HeadersEncoder.SensitivityDetector NEVER_SENSITIVE
false
for Http2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.static final Http2HeadersEncoder.SensitivityDetector ALWAYS_SENSITIVE
true
for Http2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence)
.void encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) throws Http2Exception
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.Http2Exception
Http2HeadersEncoder.Configuration configuration()
Http2HeadersEncoder.Configuration
for this Http2HeadersEncoder