pub struct Query<'a> { /* private fields */ }Expand description
A set of QueryPairs, parsed from a query.
This is a multimap (one to many relation between keys and values) struct. A query can have multiple values per name. If we always use the first or last value of a name in a query, subtle exploits slip in. You have to make a explicit choice of what to do in this implementation.
Note that the order of the names in the Display implementation may be in the right order.
Implementations§
source§impl<'a> Query<'a>
impl<'a> Query<'a>
sourcepub fn get_all(&self, name: &'a str) -> QueryPairIter<'_> ⓘ
pub fn get_all(&self, name: &'a str) -> QueryPairIter<'_> ⓘ
Returns a iterator of all values with name.
Don’t use this to get the first or last item; you’ll get the same drawbacks as
Self::get_first and Self::get_last.