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:

  1. Keys are distinct

Arguments:

  1. Key to search

  2. 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.

  3. The names of the keys. (If put more than existing, or invalid then error might happen because we are looking for all provided keys.)