1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Primitives shared between HPACK (RFC 7541) and QPACK (RFC 9204).
//!
//! Both header-compression schemes use the same Huffman code
//! (RFC 7541 Appendix B, reused verbatim by RFC 9204 Section 4.2) and the
//! same prefix-integer representation (RFC 7541 Section 5.1, reused by
//! RFC 9204 Section 4.3). These live here, one level up from the protocol
//! modules that consume them, so neither codec needs to depend on the other.
//!
//! Consumers: `h2::hpack` (HPACK) and `h3::qpack` (QPACK).
//!
//! This module is also the public `vibeio_http::hpack` path: the HPACK
//! codec surface (`Decoder`, `Encoder`, `Header`) is re-exported from
//! `h2::hpack`.
pub
pub
pub
pub use crate;
/// Errors produced by the shared HPACK/QPACK primitives.
///
/// The integer and Huffman variants are produced by the shared code; the
/// remaining variants are produced by the HPACK decoder itself. Callers map
/// these to protocol errors (`COMPRESSION_ERROR` for HTTP/2, the `0x2xx`
/// QPACK error family for HTTP/3).