pub fn map_body<F, U>(mut self, f: F) -> ClientResponse<U>
    where
        F: FnOnce(&mut ResponseHead, Payload<S>) -> Payload<U>,
    {
        let payload = f(&mut self.head, self.payload);

        ClientResponse {
            payload,
            head: self.head,
            timeout: self.timeout,
        }
    }
/// 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, U>(mut self, f: F) -> ClientResponse<U>
    where
        F: FnOnce(&mut ResponseHead, Payload<S>) -> Payload<U>,
    {
        let payload = f(&mut self.head, self.payload);
        ClientResponse {
            payload,
            head: self.head,
            timeout: self.timeout,
        }
    }
pub fn map_body < F , U > ( mut self , f : F ) -> ClientResponse < U > where F : FnOnce ( & mut ResponseHead , Payload < S > ) -> Payload < U > , { let payload = f ( & mut self . head , self . payload ) ; ClientResponse { payload , head : self . head , timeout : self . timeout , } }
Set a body and return previous body value
Set a body and return previous body value
mut self
f
F
mut self
f
F