Module tower_livereload::predicate
source · Expand description
Predicates for matching HTTP responses and requests.
Note that in addition to the predicates exported by this module,
Predicate
is also implemented for Fn(&T) -> bool + Copy
,
which is useful for quickly getting an arbitrary predicate.
Structs§
- A predicate that matches any request or response.
- A predicate that matches based on
Content-Type
header.
Traits§
- Trait for predicates that check if a value matches them.