fn continue_from_before(&self, req: &mut Request,
                            index: usize) -> IronResult<Response> {
        // If this was the last beforemiddleware, start at the handler.
        if index >= self.befores.len() {
            return self.continue_from_handler(req)
        }

        for (i, before) in self.befores[index..].iter().enumerate() {
            match before.before(req) {
                Ok(()) => {},
                Err(err) => return self.fail_from_before(req, index + i + 1, err)
            }
        }

        // Yield to next phase.
        self.continue_from_handler(req)
    }
// Enter the normal flow in the before middleware, starting with the passed
// index.
Enter the normal flow in the before middleware, starting with the passed
index.
Enter the normal flow in the before middleware starting with the passed index .
fn continue_from_before(&self, req: &mut Request,
                            index: usize) -> IronResult<Response> {
        // If this was the last beforemiddleware, start at the handler.
        if index >= self.befores.len() {
            return self.continue_from_handler(req)
        }
        for (i, before) in self.befores[index..].iter().enumerate() {
            match before.before(req) {
                Ok(()) => {},
                Err(err) => return self.fail_from_before(req, index + i + 1, err)
            }
        }
        // Yield to next phase.
        self.continue_from_handler(req)
    }
fn continue_from_before ( & self , req : & mut Request , index : usize ) -> IronResult < Response > { // If this was the last beforemiddleware, start at the handler. if index >= self . befores . len ( ) { return self . continue_from_handler ( req ) } for ( i , before ) in self . befores [ index .. ] . iter ( ) . enumerate ( ) { match before . before ( req ) { Ok ( ( ) ) => { } , Err ( err ) => return self . fail_from_before ( req , index + i + 1 , err ) } } // Yield to next phase. self . continue_from_handler ( req ) }
Enter the normal flow in the before middleware, starting with the passed
index.
Enter the normal flow in the before middleware starting with the passed index .
&self
req
&mut Request
index
usize