public static interface Http2HeadersDecoder.Configuration
Http2HeadersDecoder interface| 限定符和类型 | 方法和说明 |
|---|---|
long |
maxHeaderListSize()
Represents the value for
SETTINGS_MAX_HEADER_LIST_SIZE.
|
void |
maxHeaderListSize(long max,
long goAwayMax)
Configure the maximum allowed size in bytes of each set of headers.
|
long |
maxHeaderListSizeGoAway()
Represents the upper bound in bytes for a set of headers before a
GO_AWAY should be sent. |
long |
maxHeaderTableSize()
Represents the value for
SETTINGS_HEADER_TABLE_SIZE.
|
void |
maxHeaderTableSize(long max)
Represents the value for
SETTINGS_HEADER_TABLE_SIZE.
|
void maxHeaderTableSize(long max)
throws Http2Exception
SETTINGS frame.Http2Exceptionlong maxHeaderTableSize()
Http2CodecUtil.DEFAULT_HEADER_TABLE_SIZE.void maxHeaderListSize(long max,
long goAwayMax)
throws Http2Exception
This method should only be called by Netty (not users) as a result of a receiving a SETTINGS frame.
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 a RST_STREAM frame will be sent for the offending stream.goAwayMax - Must be >= max. A GO_AWAY frame will be generated if this limit is exceeded
for any particular stream.Http2Exception - if limits exceed the RFC's boundaries or max > goAwayMax.long maxHeaderListSize()
long maxHeaderListSizeGoAway()
GO_AWAY should be sent.
This will be <=
SETTINGS_MAX_HEADER_LIST_SIZE.