Skip to content

Commit

Permalink
6.5.1
Browse files Browse the repository at this point in the history
Same as 6.5.0 with one change:

`Config::max_connections_per_host()` is now properly named `Config::set_max_connections_per_host()`.

### Added
- `Config` has been stabilized and is now available by default!
- `wasm_client` support for `Config` (only timeouts).
- `Config::max_connections_per_host` (Supported on `h1_client` and `curl_client`.)

### Deprecated
- `H1Client::with_max_connections()` was been superseded by `Config::max_connections_per_host`.
  • Loading branch information
Fishrock123 committed Aug 19, 2021
1 parent 80e4fc5 commit 3c0ed9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview

## [Unreleased]

Same as 6.5.0 with one change:

`Config::max_connections_per_host()` is now properly named `Config::set_max_connections_per_host()`.

## [6.5.0]

(Yanked)

### Added
- `Config` has been stabilized and is now available by default!
- `wasm_client` support for `Config` (only timeouts).
- `Config::max_connections_per_host` (Supported on `h1_client` and `curl_client`.)

### Deprecated
- `H1Client::with_max_connections()` was been superseded by `Config::max_connections_per_host`.
- `H1Client::with_max_connections()` will be superseded by `Config::max_connections_per_host`.

## [6.4.1] - 2021-05-19

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "http-client"
version = "6.5.0"
version = "6.5.1"
license = "MIT OR Apache-2.0"
repository = "https://github.com/http-rs/http-client"
documentation = "https://docs.rs/http-client"
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Config {
}

/// Set the maximum number of simultaneous connections that this client is allowed to keep open to individual hosts at one time.
pub fn max_connections_per_host(mut self, max_connections_per_host: usize) -> Self {
pub fn set_max_connections_per_host(mut self, max_connections_per_host: usize) -> Self {
self.max_connections_per_host = max_connections_per_host;
self
}
Expand Down

0 comments on commit 3c0ed9a

Please sign in to comment.