Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.1.0
->2.3.2
Release Notes
http-rs/surf (surf)
v2.3.2
Compare Source
Fixes
Config::set_tls_config()
when usingh1-client
(async-h1
withasync-native-tls
).v2.3.1
Compare Source
Fixed git base of 2.3.0
v2.3.0
Compare Source
(Yanked, faulty git base)
Additions
surf::Config
, a way to configuresurf::Client
-s!Config::add_header()
- client-wide headersConfig::set_base_url()
- client-wide base urlConfig::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 onh1-client
orh1-client-rustls
.http_client::Config
.Client
viastd::convert::TryInto
.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
h1-client
backend now uses a shared client for 'one-off' style (surf::get()
, etc) requests.curl-client
andhyper-client
backends already did this.wasm-client
feature now pulls ingetrandom
's"js"
feature.Deprecations
Client::set_base_url
has been deprecated in favor ofConfig
.Docs
v2.2.0
Compare Source
If you use the
h1-client
, upgrading to this release is recommended.Additions
h1-client-rustls
feature flag, for using theasync-h1
client withrustls
as the TLS backend.h1-client
is stillasync-native-tls
.RequestBuilder::middleware(&mut self, impl Middleware)
.AsRef<Headers>
andAsMut<Headers>
forsurf::Request
andsurf::Response
.Fixes
RedirectMiddleware
.h1-client
feature should now properly work withhttp-client
6.3.0+ without additional feature specification.Docs
http
docs now link to the live, up-to-datehttp_types
docs.Internal
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.