Releases: http-rs/http-client
Releases · http-rs/http-client
v6.3.0
Added
- Connection pooling (HTTP/1.1
keep-alive
) forh1_client
(default). native-tls
(default) andrustls
feature flags.- Only works with
h1_client
.
- Only works with
- Isahc metrics as a response extension for
curl_client
.
Fixed
Box<dyn HttpClient>
no longer infinitely recurses.curl_client
now always correctly reads the response body.hyper_client
should now build correctly.WasmClient
fetch from worker scope now works correctly.
Internal
- Improved CI
6.2.0
This release implements HttpClient
for Box<dyn HttpClient>
.
Added
impl HttpClient for Box<dyn HttpClient>
6.1.0
This release brings improvements for HyperClient
(hyper_client
feature).
Added
HyperClient
now implsDefault
.HyperClient::from_client(hyper::Client<C>)
.
Changed
HyperClient
now re-uses the internal client, allowing connection pooling.
6.0.0
This release moves the responsibility of any client sharing to the user.
Changed
HttpClient
implementations no longerimpl Clone
.- The responsibility for sharing is the user's.
H1Client
can no longer be instatiated viaH1Client {}
.::new()
should be used.
v5.0.1
Fixed
- Fixed a body stream translation bug in the
hyper_client
.
v5.0.0
This release includes an optional backend using hyper.rs, and uses async-trait for HttpClient
.
Added
hyper_client
feature, for using hyper.rs as the client backend.
Changed
HttpClient
now uses async-trait.- This attribute is also re-exported as
http_client::async_trait
.
- This attribute is also re-exported as
Fixed
- Fixed WASM compilation.
- Fixed Isahc (curl) client translation setting duplicate headers incorrectly.
v4.0.0
This release allows HttpClient
to be used as a dynamic Trait object.
HttpClient
: removedClone
bounds.HttpClient
: removedError
type.