[−][src]Function httptest::mappers::matches
pub fn matches(value: impl IntoRegex) -> Matches
true if the input matches the regex provided.
Example
use httptest::mappers::*; // A request matcher that matches a request to path "/test/foo" or "/test/bar". request::path(matches("^/test/(foo|bar)$"));