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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget(int index) get(HttpHeader header) intintstatic HpackContext.EntrygetStatic(HttpHeader header) intindex(HpackContext.Entry entry) voidresize(int newMaxDynamicTableSize) intsize()static intstaticIndex(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
-