Function httptest::matchers::all_of

source ยท
pub fn all_of<IN>(inner: Vec<Box<dyn Matcher<IN>>>) -> AllOf<IN>
where IN: ?Sized,
Expand description

true if all the provided matchers return true. See the all_of! macro for convenient usage.

use httptest::matchers::*;

// A request matcher that matches a POST with a path that matches the regex 'foo.*'.
let mut m = all_of![
    request::method("POST"),
    request::path(matches("foo.*")),
];