pub fn map_body<F, B2>(self, f: F) -> HttpResponse<B2>
    where
        F: FnOnce(&mut ResponseHead, B) -> B2,
    {
        HttpResponse {
            res: self.res.map_body(f),
            error: self.error,
        }
    }
/// Set a body and return previous body value
Set a body and return previous body value
Set a body and return previous body value
pub fn map_body<F, B2>(self, f: F) -> HttpResponse<B2>
    where
        F: FnOnce(&mut ResponseHead, B) -> B2,
    {
        HttpResponse {
            res: self.res.map_body(f),
            error: self.error,
        }
    }
pub fn map_body < F , B2 > ( self , f : F ) -> HttpResponse < B2 > where F : FnOnce ( & mut ResponseHead , B ) -> B2 , { HttpResponse { res : self . res . map_body ( f ) , error : self . error , } }
Set a body and return previous body value
Set a body and return previous body value
self
f
F
self
f
F