Skip to content

Releases: http-rs/http-client

v6.3.0

12 Feb 23:19
Compare
Choose a tag to compare

Added

  • Connection pooling (HTTP/1.1 keep-alive) for h1_client (default).
  • native-tls (default) and rustls feature flags.
    • Only works with h1_client.
  • 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

26 Oct 17:22
Compare
Choose a tag to compare

This release implements HttpClient for Box<dyn HttpClient>.

Added

  • impl HttpClient for Box<dyn HttpClient>

6.1.0

09 Oct 22:47
Compare
Choose a tag to compare

This release brings improvements for HyperClient (hyper_client feature).

Added

  • HyperClient now impls Default.
  • HyperClient::from_client(hyper::Client<C>).

Changed

  • HyperClient now re-uses the internal client, allowing connection pooling.

6.0.0

09 Oct 22:44
Compare
Choose a tag to compare

This release moves the responsibility of any client sharing to the user.

Changed

  • HttpClient implementations no longer impl Clone.
    • The responsibility for sharing is the user's.
  • H1Client can no longer be instatiated via H1Client {}.
    • ::new() should be used.

v5.0.1

18 Sep 23:02
Compare
Choose a tag to compare

Fixed

  • Fixed a body stream translation bug in the hyper_client.

v5.0.0

18 Sep 23:02
Compare
Choose a tag to compare

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.

Fixed

  • Fixed WASM compilation.
  • Fixed Isahc (curl) client translation setting duplicate headers incorrectly.

v4.0.0

10 Jul 04:40
Compare
Choose a tag to compare

This release allows HttpClient to be used as a dynamic Trait object.

  • HttpClient: removed Clone bounds.
  • HttpClient: removed Error type.

v3.0.0

29 May 16:07
Compare
Choose a tag to compare

This patch updates http-client to http-types 2.0.0 and a new version of async-h1.

Changes

  • http types and async-h1 for 2.0.0 #27

v2.0.0

17 Apr 15:01
Compare
Choose a tag to compare

Added

  • Added a new backend: h1-client #22

Changed

  • All types are now based from hyperium/http to http-types #22