pub fn parse_query(query: &[u8]) -> Result<Form, FormError>Available on crate feature
alloc only.Expand description
As parse_urlencoded, after stripping exactly one leading ? if
there is one.
§Errors
As parse_urlencoded.
§Examples
let q = form_net::parse_query(b"?q=rust+forms&page=2")?;
assert_eq!(q.get("q"), Some("rust forms"));
assert_eq!(form_net::parse_query(b"??q=x")?.get("?q"), Some("x"));