mirror of https://github.com/http-rs/surf
2.3.1
## [2.3.1] - 2021-08-23 Fixed git base of 2.3.0 ## [2.3.0] - 2021-08-23 (Yanked, faulty git base) ### Additions - `surf::Config`, a way to configure `surf::Client`-s! - `Config::add_header()` - client-wide headers - `Config::set_base_url()` - client-wide base url - `Config::set_http_keep_alive()` - `Config::set_tcp_no_delay()` - `Config::set_timeout()` - per-request timeout. - `Config::set_max_connections_per_host()` - `Config::set_tls_config()` - only available on `h1-client` or `h1-client-rustls`. - More config may be available from the underlying [`http_client::Config`](https://docs.rs/http-client/6/http_client/struct.Config.html). - Easily turns into a `Client` via `std::convert::TryInto`. - Extra `RequestBuilder` helpers for setting the body from different sources. - `body_json()`, `body_string()`, `body_bytes()`, `body_file()`. - `Client::request()` for making arbitrary HTTP-method requests from a client. ### Improvements - The `h1-client` backend now uses a shared client for 'one-off' style (`surf::get()`, etc) requests. - The `curl-client` and `hyper-client` backends already did this. - The `wasm-client` feature now pulls in `getrandom`'s `"js"` feature. - This isn't a problem since the wasm client only works in a web/emscripten environment anyways. ### Deprecations - `Client::set_base_url` has been deprecated in favor of `Config`. ### Docs - Several docs fixes - Minor 'branding' changes
This commit is contained in:
parent
9a0735e79a
commit
dedb6f42e0
|
@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.3.1] - 2021-08-23
|
||||
|
||||
Fixed git base of 2.3.0
|
||||
|
||||
## [2.3.0] - 2021-08-23
|
||||
|
||||
(Yanked, faulty git base)
|
||||
|
||||
### Additions
|
||||
- `surf::Config`, a way to configure `surf::Client`-s!
|
||||
- `Config::add_header()` - client-wide headers
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "surf"
|
||||
version = "2.3.0"
|
||||
version = "2.3.1"
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/http-rs/surf"
|
||||
documentation = "https://docs.rs/surf"
|
||||
|
|
Loading…
Reference in New Issue