public class HpackDecoder extends Object
This is not thread safe and may only be called by 1 thread at a time.
Modifier and Type | Field and Description |
---|---|
static HttpField.LongValueHttpField |
CONTENT_LENGTH_0 |
static Logger |
LOG |
Constructor and Description |
---|
HpackDecoder(int localMaxDynamicTableSize,
int maxHeaderSize) |
Modifier and Type | Method and Description |
---|---|
MetaData |
decode(ByteBuffer buffer) |
HpackContext |
getHpackContext() |
void |
setLocalMaxDynamicTableSize(int localMaxdynamciTableSize) |
static String |
toASCIIString(ByteBuffer buffer,
int length) |
String |
toString() |
public static final Logger LOG
public static final HttpField.LongValueHttpField CONTENT_LENGTH_0
public HpackDecoder(int localMaxDynamicTableSize, int maxHeaderSize)
localMaxDynamicTableSize
- The maximum allowed size of the local dynamic header field table.maxHeaderSize
- The maximum allowed size of a headers block, expressed as total of all name and value characters, plus 32 per fieldpublic HpackContext getHpackContext()
public void setLocalMaxDynamicTableSize(int localMaxdynamciTableSize)
public MetaData decode(ByteBuffer buffer)
public static String toASCIIString(ByteBuffer buffer, int length)
Copyright © 1995–2017 Webtide. All rights reserved.