Skip to main content

parse_headers

Function parse_headers 

Source
fn parse_headers(
    v: &Value,
    field: &str,
) -> Result<Vec<(String, String)>, String>
Expand description

Accepts headers as a map ({name: value}) or as the UI editor’s array form ([{name, value}]); scalar values are stringified, other shapes are rejected. Header names are lowercased.