pub async fn next(self, req: Request<S>) -> Result<Response> {
        match self.rest.split_first() {
            Some((head, rest)) => {
                let next = Next { ep: self.ep, rest };
                head.apply(req, next).await
            }
            None => self.ep.call(req).await,
        }
    }
/// Call either the next filter in the chain, or the actual endpoint if there are no more
/// filters. Filters are not required to call next (eg. to return a Forbidden status instead)
Call either the next filter in the chain, or the actual endpoint if there are no more
filters. Filters are not required to call next
Call either the next filter in the chain or the actual endpoint if there are no more filters . Filters are not required to call next
pub async fn next(self, req: Request<S>) -> Result<Response> {
        match self.rest.split_first() {
            Some((head, rest)) => {
                let next = Next { ep: self.ep, rest };
                head.apply(req, next).await
            }
            None => self.ep.call(req).await,
        }
    }
pub async fn next ( self , req : Request < S > ) -> Result < Response > { match self . rest . split_first ( ) { Some ( ( head , rest ) ) => { let next = Next { ep : self . ep , rest } ; head . apply ( req , next ) . await } None => self . ep . call ( req ) . await , } }
Call either the next filter in the chain, or the actual endpoint if there are no more
filters.
Call either the next filter in the chain or the actual endpoint if there are no more filters .
self
req
Request<S>