pub fn path<M>(inner: M) -> Path<M>
Expand description
Extract the path from the HTTP request and pass it to the next mapper.
§Example
use httptest::matchers::*;
// A request matcher that matches a path of `/foo`.
request::path("/foo");
// A request matcher that matches a path of `/foo` or `/bar`.
request::path(matches("^/(foo|bar)$"));