pub fn key<M>(inner: M) -> Key<M>
Expand description
extract the key from a key-value pair.
Example
use httptest::matchers::*;
// A request matcher that matches a request with a header `x-foobar` with any value.
request::headers(contains(key("x-foobar")));
// A request matcher that matches a request with a query parameter `foobar` with any value.
request::query(url_decoded(contains(key("foobar"))));