[][src]Function httptest::mappers::request::query

pub fn query<M>(inner: M) -> Query<M>

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

Example

use httptest::mappers::*;

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