public interface Http2HeadersEncoder
Http2Headers into HPACK-encoded headers blocks.| Modifier and Type | Interface and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
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). |
| Modifier and Type | Method and Description |
|---|---|
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.Http2ExceptionHttp2HeadersEncoder.Configuration configuration()
Http2HeadersEncoder.Configuration for this Http2HeadersEncoderCopyright © 2008–2025 The Netty Project. All rights reserved.