[][src]Function httptest::mappers::value

pub fn value<M>(inner: M) -> Value<M>

extract the value from a key-value pair.

Example

use httptest::mappers::*;

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