Top Description Inners Methods
io.netty.handler.codec.http2

public Interface Http2HeadersDecoder

Known Direct Implementers
io.netty.handler.codec.http2.DefaultHttp2HeadersDecoder
Annotations
@UnstableApi
Imports
io.netty.buffer.ByteBuf, io.netty.util.internal.UnstableApi

Decodes HPACK-encoded headers blocks into Http2Headers.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Http2HeadersDecoder.Configuration

Configuration related elements for the Http2HeadersDecoder interface

Method Summary

Modifier and TypeMethod and Description
public Http2HeadersDecoder.Configuration
public Http2Headers
decodeHeaders(int streamId, ByteBuf headerBlock)

Decodes the given headers block and returns the headers.

Method Detail

configurationback to summary
public Http2HeadersDecoder.Configuration configuration()

Get the Configuration for this Http2HeadersDecoder

decodeHeadersback to summary
public Http2Headers decodeHeaders(int streamId, ByteBuf headerBlock) throws Http2Exception

Decodes the given headers block and returns the headers.

io.netty.handler.codec.http2 back to summary

public Interface Http2HeadersDecoder.Configuration

Known Direct Implementers
io.netty.handler.codec.http2.DefaultHttp2HeadersDecoder

Configuration related elements for the Http2HeadersDecoder interface

Method Summary

Modifier and TypeMethod and Description
public void
maxHeaderListSize(long
SETTINGS_MAX_HEADER_LIST_SIZE. If this limit is exceeded the implementation should attempt to keep the HPACK header tables up to date by processing data from the peer, but a RST_STREAM frame will be sent for the offending stream.
max
,
long
Must be >= max. A GO_AWAY frame will be generated if this limit is exceeded for any particular stream.
goAwayMax
)

Configure the maximum allowed size in bytes of each set of headers.

public long
public long
maxHeaderListSizeGoAway()

Represents the upper bound in bytes for a set of headers before a GO_AWAY should be sent.

public void
maxHeaderTableSize(long max)

Represents the value for SETTINGS_HEADER_TABLE_SIZE.

public long

Method Detail

maxHeaderListSizeback to summary
public void maxHeaderListSize(long max, long goAwayMax) throws Http2Exception

Configure the maximum allowed size in bytes of each set of headers.

This method should only be called by Netty (not users) as a result of a receiving a SETTINGS frame.

Parameters
max:long

SETTINGS_MAX_HEADER_LIST_SIZE. If this limit is exceeded the implementation should attempt to keep the HPACK header tables up to date by processing data from the peer, but a RST_STREAM frame will be sent for the offending stream.

goAwayMax:long

Must be >= max. A GO_AWAY frame will be generated if this limit is exceeded for any particular stream.

Exceptions
Http2Exception:
if limits exceed the RFC's boundaries or max > goAwayMax.
maxHeaderListSizeback to summary
public long maxHeaderListSize()

Represents the value for SETTINGS_MAX_HEADER_LIST_SIZE.

maxHeaderListSizeGoAwayback to summary
public long maxHeaderListSizeGoAway()

Represents the upper bound in bytes for a set of headers before a GO_AWAY should be sent. This will be <= SETTINGS_MAX_HEADER_LIST_SIZE.

maxHeaderTableSizeback to summary
public void maxHeaderTableSize(long max) throws Http2Exception

Represents the value for SETTINGS_HEADER_TABLE_SIZE. This method should only be called by Netty (not users) as a result of a receiving a SETTINGS frame.

maxHeaderTableSizeback to summary
public long maxHeaderTableSize()

Represents the value for SETTINGS_HEADER_TABLE_SIZE. The initial value returned by this method must be Http2CodecUtil#DEFAULT_HEADER_TABLE_SIZE.