pub fn with_body<T>(self, body: T) -> RequestBuilder<NH>
    where
        T: Into<Body>,
    {
        let mut request = self.request;

        if let Ok(ref mut req) = request {
            req.set_body(body);
        }

        RequestBuilder { request, ..self }
    }
/// Adds the given body into the underlying `Request`, replacing any existing body.
Adds the given body into the underlying `Request`, replacing any existing body.
Adds the given body into the underlying ` Request ` replacing any existing body .
pub fn with_body<T>(self, body: T) -> RequestBuilder<NH>
    where
        T: Into<Body>,
    {
        let mut request = self.request;
        if let Ok(ref mut req) = request {
            req.set_body(body);
        }
        RequestBuilder { request, ..self }
    }
pub fn with_body < T > ( self , body : T ) -> RequestBuilder < NH > where T : Into < Body > , { let mut request = self . request ; if let Ok ( ref mut req ) = request { req . set_body ( body ) ; } RequestBuilder { request , .. self } }
Adds the given body into the underlying `Request`, replacing any existing body.
Adds the given body into the underlying ` Request ` replacing any existing body .
self
body
T
self
body
T