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