Skip to content

2.2.0

Compare
Choose a tag to compare
@Fishrock123 Fishrock123 released this 02 Mar 19:27
· 38 commits to main since this release

surf is a modular Rust HTTP client built for rapid development. It comes with a powerful middleware system and feature-swappable backend implementations. It is part of the http-rs project and a counterpart to the tide server framework. Check out the docs or join us on Zulip

Overview

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.