@UnstableApi public class DefaultHttp2HeadersDecoder extends Object implements Http2HeadersDecoder, Http2HeadersDecoder.Configuration
Http2HeadersDecoder.Configuration| Constructor and Description |
|---|
DefaultHttp2HeadersDecoder() |
DefaultHttp2HeadersDecoder(boolean validateHeaders) |
DefaultHttp2HeadersDecoder(int maxHeaderSize,
int maxHeaderTableSize,
boolean validateHeaders) |
| Modifier and Type | Method and Description |
|---|---|
Http2HeadersDecoder.Configuration |
configuration()
Get the
Http2HeadersDecoder.Configuration for this Http2HeadersDecoder |
Http2Headers |
decodeHeaders(ByteBuf headerBlock)
Decodes the given headers block and returns the headers.
|
Http2HeaderTable |
headerTable()
Access the Http2HeaderTable for this
Http2HeadersDecoder |
int |
maxHeaderSize()
Get the maximum number of bytes that is allowed before truncation occurs.
|
protected void |
maxHeaderSizeExceeded()
Respond to headers block resulting in the maximum header size being exceeded.
|
public DefaultHttp2HeadersDecoder()
public DefaultHttp2HeadersDecoder(boolean validateHeaders)
public DefaultHttp2HeadersDecoder(int maxHeaderSize,
int maxHeaderTableSize,
boolean validateHeaders)
public Http2HeaderTable headerTable()
Http2HeadersDecoder.ConfigurationHttp2HeadersDecoderheaderTable in interface Http2HeadersDecoder.Configurationpublic int maxHeaderSize()
Http2HeadersDecoder.ConfigurationmaxHeaderSize in interface Http2HeadersDecoder.Configurationpublic Http2HeadersDecoder.Configuration configuration()
Http2HeadersDecoderHttp2HeadersDecoder.Configuration for this Http2HeadersDecoderconfiguration in interface Http2HeadersDecoderprotected void maxHeaderSizeExceeded()
throws Http2Exception
Http2Exception - If we can not recover from the truncation.public Http2Headers decodeHeaders(ByteBuf headerBlock) throws Http2Exception
Http2HeadersDecoderdecodeHeaders in interface Http2HeadersDecoderHttp2ExceptionCopyright © 2008–2016 The Netty Project. All rights reserved.