Skip to main content

parse_form_query

Function parse_form_query 

pub fn parse_form_query(query: &str) -> Vec<(String, String)>
Expand description

Parse an application/x-www-form-urlencoded query string into its key/value pairs, decoding %XX escapes and + as a space.

This is the right rule for anything a browser or an HTML form produced — including an OAuth provider’s redirect back to a loopback listener.