Package org.eclipse.jetty.http2.hpack
Class HpackContext
java.lang.Object
org.eclipse.jetty.http2.hpack.HpackContext
HPACK - Header Compression for HTTP/2
This class maintains the compression context for a single HTTP/2 connection. Specifically it holds the static and dynamic Header Field Tables and the associated sizes and limits.
It is compliant with draft 11 of the specification
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) get
(HttpHeader header) int
int
static HpackContext.Entry
getStatic
(HttpHeader header) int
index
(HpackContext.Entry entry) void
resize
(int newMaxDynamicTableSize) int
size()
static int
staticIndex
(HttpHeader header) toString()
-
Field Details
-
STATIC_TABLE
-
STATIC_SIZE
public static final int STATIC_SIZE -
DEFAULT_MAX_TABLE_CAPACITY
public static final int DEFAULT_MAX_TABLE_CAPACITY- See Also:
-
-
Method Details
-
resize
public void resize(int newMaxDynamicTableSize) -
get
-
get
-
get
-
get
-
getStatic
-
add
-
size
public int size()- Returns:
- Current dynamic table size in entries
-
getDynamicTableSize
public int getDynamicTableSize()- Returns:
- Current Dynamic table size in Octets
-
getMaxDynamicTableSize
public int getMaxDynamicTableSize()- Returns:
- Max Dynamic table size in Octets
-
index
-
staticIndex
-
toString
-