Function httptest::matchers::url_decoded
source · pub fn url_decoded<M>(inner: M) -> UrlDecoded<M>
Expand description
url decode the input and pass the resulting slice of key-value pairs 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"))));
// A request matcher that matches a request with a form-urlencoded parameter `foobar=value`.
request::body(url_decoded(contains(("foobar", "value"))));