Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Jan 30, 2025
1 parent 19cc271 commit 9995c9d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/client/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use crate::into_url::try_uri;
use crate::util::{
self,
client::{
connect::HttpConnector, Builder, Http1Builder, Http2Builder, InnerRequest, NetworkScheme,
NetworkSchemeBuilder,
connect::HttpConnector, Builder, Client as HyperClient, Http1Builder, Http2Builder,
InnerRequest, NetworkScheme, NetworkSchemeBuilder,
},
rt::{tokio::TokioTimer, TokioExecutor},
};
Expand Down Expand Up @@ -168,7 +168,7 @@ impl ClientBuilder {
dns_overrides: HashMap::new(),
dns_resolver: None,
base_url: None,
builder: util::client::Client::builder(TokioExecutor::new()),
builder: HyperClient::builder(TokioExecutor::new()),
https_only: false,
http2_max_retry_count: 2,
tls_info: false,
Expand Down Expand Up @@ -1177,8 +1177,6 @@ impl ClientBuilder {
}
}

type HyperClient = util::client::Client<Connector, super::Body>;

impl Default for Client {
fn default() -> Self {
Self::new()
Expand Down Expand Up @@ -1630,7 +1628,7 @@ struct ClientRef {
cookie_store: Option<Arc<dyn cookie::CookieStore>>,
headers: HeaderMap,
headers_order: Option<Cow<'static, [HeaderName]>>,
hyper: HyperClient,
hyper: HyperClient<Connector, super::Body>,
redirect: redirect::Policy,
redirect_with_proxy_auth: bool,
referer: bool,
Expand Down

0 comments on commit 9995c9d

Please sign in to comment.