Interface Http2HeadersDecoder.Configuration
- All Known Implementing Classes:
DefaultHttp2HeadersDecoder
- Enclosing interface:
Http2HeadersDecoder
public static interface Http2HeadersDecoder.Configuration
Configuration related elements for the
Http2HeadersDecoder interface-
Method Summary
Modifier and TypeMethodDescriptionlongRepresents the value for SETTINGS_MAX_HEADER_LIST_SIZE.voidmaxHeaderListSize(long max, long goAwayMax) Configure the maximum allowed size in bytes of each set of headers.longRepresents the upper bound in bytes for a set of headers before aGO_AWAYshould be sent.longRepresents the value for SETTINGS_HEADER_TABLE_SIZE.voidmaxHeaderTableSize(long max) Represents the value for SETTINGS_HEADER_TABLE_SIZE.
-
Method Details
-
maxHeaderTableSize
Represents the value for SETTINGS_HEADER_TABLE_SIZE. This method should only be called by Netty (not users) as a result of a receiving aSETTINGSframe.- Throws:
Http2Exception
-
maxHeaderTableSize
long maxHeaderTableSize()Represents the value for SETTINGS_HEADER_TABLE_SIZE. The initial value returned by this method must beHttp2CodecUtil.DEFAULT_HEADER_TABLE_SIZE. -
maxHeaderListSize
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
SETTINGSframe.- Parameters:
max- 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 aRST_STREAMframe will be sent for the offending stream.goAwayMax- Must be>= max. AGO_AWAYframe will be generated if this limit is exceeded for any particular stream.- Throws:
Http2Exception- if limits exceed the RFC's boundaries ormax > goAwayMax.
-
maxHeaderListSize
long maxHeaderListSize()Represents the value for SETTINGS_MAX_HEADER_LIST_SIZE. -
maxHeaderListSizeGoAway
long maxHeaderListSizeGoAway()Represents the upper bound in bytes for a set of headers before aGO_AWAYshould be sent. This will be<=SETTINGS_MAX_HEADER_LIST_SIZE.
-