Package io.netty.handler.codec.http2
Class HpackStaticTable
java.lang.Object
io.netty.handler.codec.http2.HpackStaticTable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HpackStaticTable.HeaderNameIndex[]
private static final int
private static final int
private static final HpackStaticTable.HeaderIndex[]
private static final int
private static final int
(package private) static final int
The number of header fields in the static table.(package private) static final int
private static final List
<HpackHeaderField> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
bucket
(CharSequence s, int shift, int mask) (package private) static HpackHeaderField
getEntry
(int index) Return the header field at the given index value.private static HpackStaticTable.HeaderNameIndex
getEntry
(CharSequence name) (package private) static int
getIndex
(CharSequence name) Returns the lowest index value for the given header field name in the static table.(package private) static int
getIndexInsensitive
(CharSequence name, CharSequence value) Returns the index value for the given header field in the static table.private static int
headerBucket
(CharSequence value) private static int
headerNameBucket
(CharSequence name) private static HpackHeaderField
private static HpackHeaderField
newEmptyHeaderField
(String name) private static HpackHeaderField
private static HpackHeaderField
newHeaderField
(AsciiString name, String value) private static HpackHeaderField
newPseudoHeaderField
(Http2Headers.PseudoHeaderName name, AsciiString value) private static HpackHeaderField
newPseudoHeaderField
(Http2Headers.PseudoHeaderName name, String value) private static HpackHeaderField
newPseudoHeaderMethodField
(HttpMethod method)
-
Field Details
-
NOT_FOUND
static final int NOT_FOUND- See Also:
-
STATIC_TABLE
-
HEADER_NAMES_TABLE_SIZE
private static final int HEADER_NAMES_TABLE_SIZE- See Also:
-
HEADER_NAMES_TABLE_SHIFT
private static final int HEADER_NAMES_TABLE_SHIFT -
HEADER_NAMES
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE- See Also:
-
HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT -
HEADERS_WITH_NON_EMPTY_VALUES
-
length
static final int lengthThe number of header fields in the static table.
-
-
Constructor Details
-
HpackStaticTable
private HpackStaticTable()
-
-
Method Details
-
newEmptyHeaderField
-
newEmptyHeaderField
-
newHeaderField
-
newPseudoHeaderMethodField
-
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value) -
newPseudoHeaderField
private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, String value) -
newEmptyPseudoHeaderField
-
getEntry
Return the header field at the given index value. -
getIndex
Returns the lowest index value for the given header field name in the static table. Returns -1 if the header field name is not in the static table. -
getIndexInsensitive
Returns the index value for the given header field in the static table. Returns -1 if the header field is not in the static table. -
getEntry
-
headerNameBucket
-
headerBucket
-
bucket
-