Skip to main content

decode_urlencoded

Function decode_urlencoded 

Source
fn decode_urlencoded(body: &str) -> Value
Expand description

Decodes an application/x-www-form-urlencoded body into a flat JSON object, mirroring ngx.decode_args: a=1&a=2 becomes {"a": ["1","2"]}, a bare flag (no =) becomes {"flag": true}, values are percent-decoded and + maps to space.