public final class Decoder extends Object
Constructor and Description |
---|
Decoder(long maxHeaderListSize,
int initialHuffmanDecodeCapacity)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(int streamId,
io.netty.buffer.ByteBuf in,
Http2Headers headers)
Decode the header block into header fields.
|
long |
getMaxHeaderListSize() |
long |
getMaxHeaderListSizeGoAway() |
long |
getMaxHeaderTableSize()
Return the maximum table size.
|
void |
setMaxHeaderListSize(long maxHeaderListSize,
long maxHeaderListSizeGoAway) |
void |
setMaxHeaderTableSize(long maxHeaderTableSize)
Set the maximum table size.
|
public Decoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity)
maxHeaderListSize
- This is the only setting that can be configured before notifying the peer.
This is because SETTINGS_MAX_HEADER_LIST_SIZE
allows a lower than advertised limit from being enforced, and the default limit is unlimited
(which is dangerous).initialHuffmanDecodeCapacity
- Size of an intermediate buffer used during huffman decode.public void decode(int streamId, io.netty.buffer.ByteBuf in, Http2Headers headers) throws Http2Exception
This method assumes the entire header block is contained in in
.
Http2Exception
public void setMaxHeaderTableSize(long maxHeaderTableSize) throws Http2Exception
Http2Exception
public void setMaxHeaderListSize(long maxHeaderListSize, long maxHeaderListSizeGoAway) throws Http2Exception
Http2Exception
public long getMaxHeaderListSize()
public long getMaxHeaderListSizeGoAway()
public long getMaxHeaderTableSize()
Copyright © 2008–2017 The Netty Project. All rights reserved.