Expand description
nahpack is an RFC 7541 HPACK encoder and decoder library. It compresses, decompresses, and validates an HTTP/2 “header block” as contained in HEADERS, PUSH PROMISE, and CONTINUATION frames.
Structs§
- Headers
- Header is a collection of decoded Header objects backed by both the
blockpassed to it and an owned buffer of decoded literals. - Hpack
Context - HpackContext contains the state, namely dynamic table and capacity setting, for either the transmitting or receiving part of a connection.
Enums§
- Hpack
Decode Error - HPACK decoding error states are detailed here.
Traits§
- Hpack
Encodable - HpackEncodable is the interface which headers decoded by
decode_blockadhere to, and headers to be encoded byencode_blockmust adhere to.
Functions§
- decode_
block - Decode an HTTP/2
header block transmitted in one or more
HEADERS,PUSH_PROMISE, orCONTINUATIONframes. If the header block was split across multiple frames, they must first be merged. - encode_
block - Encode an HTTP/2
header block to transmit in one or more
HEADERS,PUSH_PROMISE, orCONTINUATIONframes. The data written may be too large for one frame, and the caller is responsible for splitting it. - nahpack_
context_ free - nahpack_
context_ new - nahpack_
decode_ block - nahpack_
encode_ block - nahpack_
get_ header - nahpack_
headers_ free - nahpack_
headers_ new - nahpack_
set_ context_ capacity