@UnstableApi public class DefaultHttp2HeadersEncoder extends java.lang.Object implements Http2HeadersEncoder, Http2HeadersEncoder.Configuration, java.io.Closeable
Http2HeadersEncoder.Configuration, Http2HeadersEncoder.SensitivityDetectorALWAYS_SENSITIVE, NEVER_SENSITIVE| 构造器和说明 |
|---|
DefaultHttp2HeadersEncoder() |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector) |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector,
boolean ignoreMaxHeaderListSize) |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector,
boolean ignoreMaxHeaderListSize,
int dynamicTableArraySizeHint) |
DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector,
boolean ignoreMaxHeaderListSize,
int dynamicTableArraySizeHint,
int huffCodeThreshold) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the encoder and release all its associated data.
|
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.
|
long |
maxHeaderListSize()
Represents the value for
SETTINGS_MAX_HEADER_LIST_SIZE.
|
void |
maxHeaderListSize(long max)
Represents the value for
SETTINGS_MAX_HEADER_LIST_SIZE.
|
long |
maxHeaderTableSize()
Represents the value for
SETTINGS_HEADER_TABLE_SIZE.
|
void |
maxHeaderTableSize(long max)
Represents the value for
SETTINGS_HEADER_TABLE_SIZE.
|
public DefaultHttp2HeadersEncoder()
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize)
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize, int dynamicTableArraySizeHint)
public DefaultHttp2HeadersEncoder(Http2HeadersEncoder.SensitivityDetector sensitivityDetector, boolean ignoreMaxHeaderListSize, int dynamicTableArraySizeHint, int huffCodeThreshold)
public void encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer)
throws Http2Exception
Http2HeadersEncoderencodeHeaders 在接口中 Http2HeadersEncoderstreamId - 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.Http2Exceptionpublic void maxHeaderTableSize(long max)
throws Http2Exception
Http2HeadersEncoder.ConfigurationSETTINGS frame.public long maxHeaderTableSize()
Http2HeadersEncoder.ConfigurationHttp2CodecUtil.DEFAULT_HEADER_TABLE_SIZE.public void maxHeaderListSize(long max)
throws Http2Exception
Http2HeadersEncoder.ConfigurationSETTINGS frame.maxHeaderListSize 在接口中 Http2HeadersEncoder.ConfigurationHttp2Exceptionpublic long maxHeaderListSize()
Http2HeadersEncoder.Configurationpublic Http2HeadersEncoder.Configuration configuration()
Http2HeadersEncoderHttp2HeadersEncoder.Configuration for this Http2HeadersEncoderconfiguration 在接口中 Http2HeadersEncoderpublic void close()
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseable