Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate surf to v2.3.2 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 5, 2024

This PR contains the following updates:

Package Type Update Change
surf dependencies minor 2.1.0 -> 2.3.2

Release Notes

http-rs/surf (surf)

v2.3.2

Compare Source

Fixes
  • Fixed Config::set_tls_config() when using h1-client (async-h1 with async-native-tls).
    • Previously this function was never exposed due to a faulty feature flag check.

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 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.
    • 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

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 the async-h1 client with rustls as the TLS backend.
    • The TLS backend for h1-client is still async-native-tls.
  • Per-request middleware, provided by RequestBuilder::middleware(&mut self, impl Middleware).
  • AsRef<Headers> and AsMut<Headers> for surf::Request and surf::Response.
Fixes
  • Relative redirects should now be handled by the RedirectMiddleware.
  • The h1-client feature should now properly work with http-client 6.3.0+ without additional feature specification.
Docs
  • The http docs now link to the live, up-to-date http_types docs.
Internal
  • Various CI improvements.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants