Skip to main content

with_query

Function with_query 

Source
pub fn with_query<Pairs, Key, Value>(path: &str, pairs: Pairs) -> Cow<'_, str>
where Pairs: ExactSizeIterator<Item = (Key, Value)>, Key: AsRef<str>, Value: AsRef<str>,
Expand description

Appends form-encoded query pairs to a path.

With no pairs the path comes back borrowed and unchanged, without a ?.