[−][src]Function httptest::mappers::request::path
pub fn path<M>(inner: M) -> Path<M>
Extract the path from the HTTP request and pass it to the next mapper.
Example
use httptest::mappers::*; // 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)$"));