Skip to main content

encode_header_block

Function encode_header_block 

pub fn encode_header_block(headers: &HeaderMap) -> Bytes
Available on crate features http and std only.
Expand description

Encode HTTP header fields and the empty line ending them, as a trailer section carries them, into an exactly sized buffer.