[−][src]Trait gotham::router::route::matcher::RouteMatcher
Determines if conditions required for the associated Route
to be invoked by the Router
have
been met.
Required methods
fn is_match(&self, state: &State) -> Result<(), RouteNonMatch>
Determines if the Request
meets pre-defined conditions.
Implementors
impl RouteMatcher for AcceptHeaderRouteMatcher
[src]
fn is_match(&self, state: &State) -> Result<(), RouteNonMatch>
[src]
Determines if the Request
was made using an Accept
header that includes one or more
supported media types. A missing Accept
header, or the value of */*
will also positvely
match.
Quality values within Accept
header values are not considered by the matcher, as the
matcher is only able to indicate whether a successful match has been found.
impl RouteMatcher for AccessControlRequestMethodMatcher
[src]
impl RouteMatcher for AnyRouteMatcher
[src]
impl RouteMatcher for ContentTypeHeaderRouteMatcher
[src]
fn is_match(&self, state: &State) -> Result<(), RouteNonMatch>
[src]
Determines if the Request
was made using a Content-Type
header that includes a
supported media type.
impl RouteMatcher for MethodOnlyRouteMatcher
[src]
fn is_match(&self, state: &State) -> Result<(), RouteNonMatch>
[src]
Determines if the Request
was made using a Method
the instance contains.
impl<T, U> RouteMatcher for AndRouteMatcher<T, U> where
T: RouteMatcher,
U: RouteMatcher,
[src]
T: RouteMatcher,
U: RouteMatcher,