Dynamic headers table
Types
Hpack = object
- A circular queue. This is an implementaion of the dynamic header table. It can be efficiently reused. HpackBound ends may be out of bounds and need to be wrapped around. All functions here take care of that
HpackBound = object n*, v*: Slice[int32]
- Header's name and value boundaries
Procs
func `[]`(q: Hpack; i: int): lent HpackBound {.inline, ...raises: [], tags: [], forbids: [].}
func clearLastResize(q: var Hpack) {....raises: [], tags: [], forbids: [].}
func finalSetSize(q: Hpack): int {....raises: [], tags: [], forbids: [].}
func hasResized(q: Hpack): bool {....raises: [], tags: [], forbids: [].}
func initDynHeaders(strsize: int): DynHeaders {....deprecated: "use initHpack", raises: [], tags: [], forbids: [].}
func initHBounds(n, v: Slice[int]): HBounds {....deprecated: "use initHpackBound", raises: [], tags: [], forbids: [].}
func initHpackBound(n, v: Slice[int]): HpackBound {.inline, ...raises: [], tags: [], forbids: [].}
func minSetSize(q: Hpack): int {....raises: [], tags: [], forbids: [].}
Iterators
iterator items(q: Hpack): lent HpackBound {.inline, ...raises: [], tags: [], forbids: [].}
iterator pairs(q: Hpack): (int, HpackBound) {.inline, ...raises: [], tags: [], forbids: [].}