public final class Decoder extends Object
Constructor and Description |
---|
Decoder(int maxHeadersLength,
int maxHeaderTableSize,
int initialHuffmanDecodeCapacity)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(io.netty.buffer.ByteBuf in,
Http2Headers headers)
Decode the header block into header fields.
|
int |
getMaxHeaderTableSize()
Return the maximum table size.
|
void |
setMaxHeaderTableSize(int maxHeaderTableSize)
Set the maximum table size.
|
public Decoder(int maxHeadersLength, int maxHeaderTableSize, int initialHuffmanDecodeCapacity)
maxHeadersLength
- The maximum size (in bytes) that is allowed for a single header decode operation.maxHeaderTableSize
- SETTINGS_HEADER_TABLE_SIZE.initialHuffmanDecodeCapacity
- The initial size of the byte array used to do huffman decoding.public void decode(io.netty.buffer.ByteBuf in, Http2Headers headers) throws Http2Exception
This method assumes the entire header block is contained in in
.
Http2Exception
public void setMaxHeaderTableSize(int maxHeaderTableSize)
public int getMaxHeaderTableSize()
Copyright © 2008–2016 The Netty Project. All rights reserved.