fn continue_from_after(&self, req: &mut Request, index: usize,
                            mut res: Response) -> IronResult<Response> {
        // If this was the last after middleware, we're done.
        if index >= self.afters.len() {
            return Ok(res);
        }

        for (i, after) in self.afters[index..].iter().enumerate() {
            res = match after.after(req, res) {
                Ok(r) => r,
                Err(err) => return self.fail_from_after(req, index + i + 1, err)
            }
        }

        // We made it with no error!
        Ok(res)
    }
// Enter the normal flow in the after middleware, starting with the passed
// index.
Enter the normal flow in the after middleware, starting with the passed
index.
Enter the normal flow in the after middleware starting with the passed index .
fn continue_from_after(&self, req: &mut Request, index: usize,
                            mut res: Response) -> IronResult<Response> {
        // If this was the last after middleware, we're done.
        if index >= self.afters.len() {
            return Ok(res);
        }
        for (i, after) in self.afters[index..].iter().enumerate() {
            res = match after.after(req, res) {
                Ok(r) => r,
                Err(err) => return self.fail_from_after(req, index + i + 1, err)
            }
        }
        // We made it with no error!
        Ok(res)
    }
fn continue_from_after ( & self , req : & mut Request , index : usize , mut res : Response ) -> IronResult < Response > { // If this was the last after middleware, we're done. if index >= self . afters . len ( ) { return Ok ( res ) ; } for ( i , after ) in self . afters [ index .. ] . iter ( ) . enumerate ( ) { res = match after . after ( req , res ) { Ok ( r ) => r , Err ( err ) => return self . fail_from_after ( req , index + i + 1 , err ) } } // We made it with no error! Ok ( res ) }
Enter the normal flow in the after middleware, starting with the passed
index.
Enter the normal flow in the after middleware starting with the passed index .
&self
req
&mut Request
index
usize
res
Response