pub fn message_body<B>(&mut self, body: B) -> Result<Response<B>, Error> {
        if let Some(err) = self.err.take() {
            return Err(Error::new_http().with_cause(err));
        }

        let head = self.head.take().expect("cannot reuse response builder");
        Ok(Response { head, body })
    }
/// Generate response with a body.
///
/// This `ResponseBuilder` will be left in a useless state.
Generate response with a body.
This `ResponseBuilder` will be left in a useless state.
Generate response with a body . This ` ResponseBuilder ` will be left in a useless state .
pub fn message_body<B>(&mut self, body: B) -> Result<Response<B>, Error> {
        if let Some(err) = self.err.take() {
            return Err(Error::new_http().with_cause(err));
        }
        let head = self.head.take().expect("cannot reuse response builder");
        Ok(Response { head, body })
    }
pub fn message_body < B > ( & mut self , body : B ) -> Result < Response < B > , Error > { if let Some ( err ) = self . err . take ( ) { return Err ( Error :: new_http ( ) . with_cause ( err ) ) ; } let head = self . head . take ( ) . expect ( " " ) ; Ok ( Response { head , body } ) }
Generate response with a body.
Generate response with a body .
&mut self
body
B
&mut self
body
B