Module matcher
Available on crate features
http and std only.Expand description
service::Matchers implementations to match on rama_http_types::Requests.
See service::matcher module for more information.
Path matchers and the Router use PathPattern syntax ({name},
{*rest}, ? for optional), not RFC 6570; the uri module compares it with
the other URI patterns.
Modules§
- uri
- provides a
UriMatchermatcher for matching requests based on their URI.
Structs§
- Domain
Matcher - Matcher based on the (sub)domain of the request’s URI.
- Header
Matcher - Matcher based on the
Request’s headers. - Http
Matcher - A matcher that is used to match an http
Request - Method
Matcher - A matcher that matches one or more HTTP methods.
- Path
Match Policy - Typed HTTP path-matching policy used by
Routerand policy-awareHttpMatcherconstructors. - Subdomain
Trie Matcher - A matcher that matches subdomains.
- Upgrade
Token Matcher - Matches requests opening a protocol by upgrade token, on any HTTP version.
- UriMatcher
- Matches the request’s URI as text, using a glob (
Wildcard:*any run of bytes,?any one byte) or a regex. - UriParams
- Parameters inserted in
Extensionswhen a path matcher matches aRequest. - UriParams
Deserialize Error - Error that can occur during the deserialization of the
UriParams. - Version
Matcher - A matcher that matches one or more HTTP methods.
Enums§
- Http
Matcher Kind - A matcher that is used to match an http
Request - Path
Case - ASCII case-comparison policy for HTTP request paths.
- Path
Decoding - Percent-escape handling policy for HTTP request paths and captures.