pub trait FilterFn: Send + Sync + 'static { // Required method fn filter(&self, request: &Request<Body>) -> bool; }
Used by the Filter HttpResponder to decide which requests to forward and which to ignore.
Return true iff Filter should forward the request to its wrapped Responder.