@UnstableApi
public interface Http2HeadersEncoder
Http2Headers编码为HPACK编码的标题块。
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Http2HeadersEncoder.Configuration
Http2HeadersEncoder接口的配置相关元素
|
static interface |
Http2HeadersEncoder.SensitivityDetector
确定标题名称/值对是否被视为
sensitive 。
|
| Modifier and Type | Field and Description |
|---|---|
static Http2HeadersEncoder.SensitivityDetector |
ALWAYS_SENSITIVE
|
static Http2HeadersEncoder.SensitivityDetector |
NEVER_SENSITIVE
|
| Modifier and Type | Method and Description |
|---|---|
Http2HeadersEncoder.Configuration |
configuration()
|
void |
encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer)
编码给定的标题并将输出标题块写入给定的输出缓冲区。
|
static final Http2HeadersEncoder.SensitivityDetector NEVER_SENSITIVE
false
82599761164229 。
static final Http2HeadersEncoder.SensitivityDetector ALWAYS_SENSITIVE
void encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer)
throws Http2Exception
streamId - 标题被编码的流的标识符。
headers - 要编码的标题。
buffer - 接收编码标题的缓冲区。
Http2Exception
Http2HeadersEncoder.Configuration configuration()
Copyright © 2008–2018 The Netty Project. All rights reserved.