Skip to main content

collapse_multi

Function collapse_multi 

Source
fn collapse_multi(map: &HashMap<String, Vec<String>>) -> Value
Expand description

Collapses a multi-valued header/query map into single strings where there is one value and arrays where there are several — mirroring OpenResty’s core.request.headers / get_uri_args shape.