Function httptest::matchers::request::query

source ·
pub fn query<M>(inner: M) -> Query<M>
Expand description

Extract the query from the HTTP request and pass it to the next mapper.

Example

use httptest::matchers::*;

// A request matcher that matches a request with a query parameter `foobar=value`.
request::query(url_decoded(contains(("foobar", "value"))));