2.2.0
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 theasync-h1
client withrustls
as the TLS backend.- The TLS backend for
h1-client
is stillasync-native-tls
.
- The TLS backend for
- Per-request middleware, provided by
RequestBuilder::middleware(&mut self, impl Middleware)
. AsRef<Headers>
andAsMut<Headers>
forsurf::Request
andsurf::Response
.
Fixes
- Relative redirects should now be handled by the
RedirectMiddleware
. - The
h1-client
feature should now properly work withhttp-client
6.3.0+ without additional feature specification.
Docs
- The
http
docs now link to the live, up-to-datehttp_types
docs.
Internal
- Various CI improvements.