Function convert_headers
Source pub fn convert_headers(
header_values: &[String],
) -> Result<Vec<HttpHeader>, Error>
Expand description
Converts a slice of strings into HTTP headers.
Each string should be in “name: value” format.
§Arguments
header_values - Slice of strings representing headers
§Returns
Result<Vec<HttpHeader>> - Vector of parsed HTTP headers