Skip to main content

insert_header

Function insert_header 

Source
pub fn insert_header(
    headers: &mut HeaderMap,
    name: &'static str,
    value: &str,
) -> Result<(), Error>
Expand description

Inserts a header into a header map.

ยงErrors

Returns an error if the header name or value is invalid.