Function httptest::matchers::matches [−][src]
Expand description
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)$"));