pub fn map_body<F, B2>(mut self, f: F) -> Response<B2>
    where
        F: FnOnce(&mut ResponseHead, B) -> B2,
    {
        let body = f(&mut self.head, self.body);

        Response {
            head: self.head,
            body,
        }
    }
/// Returns new response with mapped body.
Returns new response with mapped body.
Returns new response with mapped body .
pub fn map_body<F, B2>(mut self, f: F) -> Response<B2>
    where
        F: FnOnce(&mut ResponseHead, B) -> B2,
    {
        let body = f(&mut self.head, self.body);
        Response {
            head: self.head,
            body,
        }
    }
pub fn map_body < F , B2 > ( mut self , f : F ) -> Response < B2 > where F : FnOnce ( & mut ResponseHead , B ) -> B2 , { let body = f ( & mut self . head , self . body ) ; Response { head : self . head , body , } }
Returns new response with mapped body.
Returns new response with mapped body .
mut self
f
F
mut self
f
F