pub fn with_header<H>(self, header: H) -> RequestBuilder<NH>
    where
        H: Header,
    {
        let mut request = self.request;

        if let Ok(ref mut req) = request {
            req.headers_mut().set(header);
        }

        RequestBuilder { request, ..self }
    }
/// Adds the given header into the underlying `Request`, replacing any existing header of the
/// same type.
Adds the given header into the underlying `Request`, replacing any existing header of the
same type.
Adds the given header into the underlying ` Request ` replacing any existing header of the same type .
pub fn with_header<H>(self, header: H) -> RequestBuilder<NH>
    where
        H: Header,
    {
        let mut request = self.request;
        if let Ok(ref mut req) = request {
            req.headers_mut().set(header);
        }
        RequestBuilder { request, ..self }
    }
pub fn with_header < H > ( self , header : H ) -> RequestBuilder < NH > where H : Header , { let mut request = self . request ; if let Ok ( ref mut req ) = request { req . headers_mut ( ) . set ( header ) ; } RequestBuilder { request , .. self } }
Adds the given header into the underlying `Request`, replacing any existing header of the
same type.
Adds the given header into the underlying ` Request ` replacing any existing header of the same type .
self
header
H
self
header
H