@UnstableApi public class DefaultHttp2HeadersEncoder extends java.lang.Object implements Http2HeadersEncoder, Http2HeadersEncoder.Configuration
Http2HeadersEncoder.Configuration, Http2HeadersEncoder.SensitivityDetector
ALWAYS_SENSITIVE, NEVER_SENSITIVE
Constructor and Description |
---|
DefaultHttp2HeadersEncoder() |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector) |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize) |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize, int dynamicTableArraySizeHint) |
Modifier and Type | Method and Description |
---|---|
Http2HeadersEncoder.Configuration |
configuration()
|
void |
encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer)
编码给定的标题并将输出标题块写入给定的输出缓冲区。
|
long |
maxHeaderListSize()
|
void |
maxHeaderListSize(long max)
|
long |
maxHeaderTableSize()
|
void |
maxHeaderTableSize(long max)
|
public DefaultHttp2HeadersEncoder()
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize)
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize, int dynamicTableArraySizeHint)
public void encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) throws Http2Exception
Http2HeadersEncoder
encodeHeaders
,界面
Http2HeadersEncoder
streamId
- 标题被编码的流的标识符。
headers
- 要编码的标题。
buffer
- 接收编码标题的缓冲区。
Http2Exception
public void maxHeaderTableSize(long max) throws Http2Exception
Http2HeadersEncoder.Configuration
SETTINGS
帧的结果来SETTINGS
。
maxHeaderTableSize
在界面
Http2HeadersEncoder.Configuration
Http2Exception
public long maxHeaderTableSize()
Http2HeadersEncoder.Configuration
Http2CodecUtil.DEFAULT_HEADER_TABLE_SIZE
。
maxHeaderTableSize
在界面
Http2HeadersEncoder.Configuration
public void maxHeaderListSize(long max) throws Http2Exception
Http2HeadersEncoder.Configuration
SETTINGS
帧的结果来SETTINGS
。
maxHeaderListSize
,界面
Http2HeadersEncoder.Configuration
Http2Exception
public long maxHeaderListSize()
Http2HeadersEncoder.Configuration
maxHeaderListSize
在界面
Http2HeadersEncoder.Configuration
public Http2HeadersEncoder.Configuration configuration()
Http2HeadersEncoder
configuration
in interface
Http2HeadersEncoder
Copyright © 2008–2018 The Netty Project. All rights reserved.