Function oauth_client::parse_query_string
source · [−]pub fn parse_query_string<'q, const N: usize>(
query_string: &'q str,
sort: bool,
keys: &[&str; N]
) -> Result<[(&'q str, &'q str); N], ParseQueryError>
Expand description
Utility function to parse the Authorization
header from an HTTP request.
Assumptions:
- Keys are distinct
Arguments:
-
Key to search
-
Whether to sort the return value (for reproducibility).
Set to true if in doubt. If the server changes its order of arguments you’ll be fine.
-
The names of the keys. (If put more than existing, or invalid then error might happen because we are looking for all provided keys.)