Module actix_web::pred

source ·
Expand description

Route match predicates

Structs

Matches if all of supplied predicate matches.
Matches if any of supplied predicate matches.

Traits

Trait defines resource route predicate. Predicate can modify request object. It is also possible to to store extra attributes on request by using Extensions container, Extensions container available via HttpRequest::extensions() method.

Functions

Return predicate that matches if all of supplied predicate matches.
Return predicate that matches if any of supplied predicate matches.
Predicate to match CONNECT http method
Predicate to match DELETE http method
Predicate to match GET http method
Predicate to match HEAD http method
Return predicate that matches if request contains specified header and value.
Return predicate that matches if request contains specified Host name.
Predicate to match specified http method
Return predicate that matches if supplied predicate does not match.
Predicate to match OPTIONS http method
Predicate to match PATCH http method
Predicate to match POST http method
Predicate to match PUT http method
Predicate to match TRACE http method