query_params

Function query_params 

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

a=1&b=2, decoded. A repeated name keeps every value, and the reader takes the first — which is the behaviour that makes ?code=good&code=evil unambiguous.

Public because a application/x-www-form-urlencoded body has the same shape, and because the harness reads a query the same way the edge does: two readers would be two sets of rules about what + means.