pub fn request_from<U>(&self, url: U, head: &RequestHead) -> ClientRequest
    where
        Uri: TryFrom<U>,
        <Uri as TryFrom<U>>::Error: Into<HttpError>,
    {
        let mut req = self.request(head.method.clone(), url);
        for header in head.headers.iter() {
            req = req.insert_header_if_none(header);
        }
        req
    }
/// Create `ClientRequest` from `RequestHead`
///
/// It is useful for proxy requests. This implementation
/// copies all headers and the method.
Create `ClientRequest` from `RequestHead`
It is useful for proxy requests. This implementation
copies all headers and the method.
Create ` ClientRequest ` from ` RequestHead ` It is useful for proxy requests . This implementation copies all headers and the method .
pub fn request_from<U>(&self, url: U, head: &RequestHead) -> ClientRequest
    where
        Uri: TryFrom<U>,
        <Uri as TryFrom<U>>::Error: Into<HttpError>,
    {
        let mut req = self.request(head.method.clone(), url);
        for header in head.headers.iter() {
            req = req.insert_header_if_none(header);
        }
        req
    }
pub fn request_from < U > ( & self , url : U , head : & RequestHead ) -> ClientRequest where Uri : TryFrom < U > , < Uri as TryFrom < U > > :: Error : Into < HttpError > , { let mut req = self . request ( head . method . clone ( ) , url ) ; for header in head . headers . iter ( ) { req = req . insert_header_if_none ( header ) ; } req }
Create `ClientRequest` from `RequestHead`
It is useful for proxy requests.
Create ` ClientRequest ` from ` RequestHead ` It is useful for proxy requests .
&self
url
U
head
&RequestHead
&self
url
U
head
&RequestHead