Expand description
§hpack-html
High-performance .hpack HTML packet decompressor.
Decodes binary .hpack packets produced by the hpack-html-js JavaScript compressor,
decompresses the HTML body (DEFLATE or gzip), and verifies CRC32 integrity.
§Example
let packed: &[u8] = &[/* .hpack bytes */];
let result = hpack_html::unpack(packed).unwrap();
println!("URL: {}", result.url);
println!("HTML: {} bytes", result.html.len());Structs§
- Unpack
Options - Options for unpacking.
- Unpack
Result - Result of unpacking an .hpack packet.
Enums§
- Compression
Algorithm - Compression algorithm.
- Error
- Errors that can occur when decoding an .hpack packet.
Functions§
- read_
headers - Read only headers without decompressing the body.
- unpack
- Unpack an .hpack binary packet.
- unpack_
with_ options - Unpack with options.