Function with_header_pool
Source pub fn with_header_pool<F, R>(f: F) -> R
Expand description
Access the thread-local header pool directly.
Use this when you need to encode multiple headers in sequence
without copying.
ยงExample
โwith_header_pool(|pool| {
let buf1 = pool.encode(&header1);
let buf2 = pool.encode(&header2);
});