pub(crate) fn new<U>(method: Method, uri: U, config: ClientConfig) -> Self
    where
        Uri: TryFrom<U>,
        <Uri as TryFrom<U>>::Error: Into<HttpError>,
    {
        ClientRequest {
            config,
            head: RequestHead::default(),
            err: None,
            addr: None,
            #[cfg(feature = "cookies")]
            cookies: None,
            timeout: None,
            response_decompress: true,
        }
        .method(method)
        .uri(uri)
    }
/// Create new client request builder.
Create new client request builder.
Create new client request builder .
pub(crate) fn new<U>(method: Method, uri: U, config: ClientConfig) -> Self
    where
        Uri: TryFrom<U>,
        <Uri as TryFrom<U>>::Error: Into<HttpError>,
    {
        ClientRequest {
            config,
            head: RequestHead::default(),
            err: None,
            addr: None,
            #[cfg(feature = "cookies")]
            cookies: None,
            timeout: None,
            response_decompress: true,
        }
        .method(method)
        .uri(uri)
    }
pub ( crate ) fn new < U > ( method : Method , uri : U , config : ClientConfig ) -> Self where Uri : TryFrom < U > , < Uri as TryFrom < U > > :: Error : Into < HttpError > , { ClientRequest { config , head : RequestHead :: default ( ) , err : None , addr : None , # [ cfg ( feature " " ) ] cookies : None , timeout : None , response_decompress : true , } . method ( method ) . uri ( uri ) }
Create new client request builder.
Create new client request builder .
method
Method
uri
U
config
ClientConfig
method
Method
uri
U
config
ClientConfig