Skip to main content

convert_header

Function convert_header 

Source
pub fn convert_header(value: &str) -> Result<Option<HttpHeader>, Error>
Expand description

Converts a single string in “name: value” format into an HttpHeader tuple.

This is a utility function for parsing header configurations. It trims whitespace from both the name and the value.