Skip to main content

convert_headers

Function convert_headers 

Source
pub fn convert_headers(
    header_values: &[String],
) -> Result<Vec<HttpHeader>, Error>
Expand description

Converts a slice of strings into a Vec of HttpHeaders.

This function iterates over a list of header strings and uses convert_header on each, collecting the valid results into a vector.