pub trait Predicate<Request> { type Request; fn check(&mut self, request: Request) -> Result<Self::Request, BoxError>; }
filter
Checks a request synchronously.
The type of requests returned by check.
check
This request is forwarded to the inner service if the predicate succeeds.
Check whether the given request should be forwarded.
If the future resolves with Ok, the request is forwarded to the inner service.
Ok