Releases: seanmonstar/reqwest
Releases Β· seanmonstar/reqwest
v0.13.1
What's Changed
- http3: depend on quinn/rustls-aws-lc-rs to avoid ring dependency by @djc in #2917
- fix rustls on android by @seanmonstar in #2918
Full Changelog: v0.13.0...v0.13.1
v0.13.0
Breaking changes
rustlsis now the default TLS backend, instead ofnative-tls.rustlscrypto provider defaults to aws-lc instead of ring. (rustls-no-providerexists if you want a different crypto provider)rustls-tlshas been renamed torustls.- rustls roots features removed,
rustls-platform-verifieris used by default.- To use different roots, call
tls_certs_only(your_roots).
- To use different roots, call
native-tlsnow includes ALPN. To disable, usenative-tls-no-alpn.queryandformare now crate features, disabled by default.- Long-deprecated methods and crate features have been removed (such as
trust-dns, which was renamedhickory-dnsa while ago). - Many TLS-related methods renamed to improve autocompletion and discovery, but previous name left in place with a "soft" deprecation. (just documented, no warnings)
- For example, prefer
tls_backend_rustls()overuse_rustls_tls().
- For example, prefer
Pull Requests in General
- start 0.13 dev by @seanmonstar in #2894
- Make
serdeoptional by introducingquery,formfeatures, and re-working WASM header parsing by @CathalMullan in #2858 - replace
ClientBuilder::dns_resolverwithdns_resolver2by @seanmonstar in #2898 - feat: make Rustls the default TLS provider by @calavera in #2897
- feat: consolidate TLS options with rustls-platform-verifier by @seanmonstar in #2891
- remove long-deprecated methods: trust-dns and non-wasm-cors by @seanmonstar in #2899
- rename rustls-tls feature to just rustls by @seanmonstar in #2900
- remove deprecated features trust-dns and macos-system-configuration by @seanmonstar in #2901
- chore: separate rustls and rustls-no-provider features by @seanmonstar in #2903
- rustls: allow windows to use extra roots by @seanmonstar in #2904
- v0.13.0-rc.1 by @seanmonstar in #2905
- Enable ALPN by default in native-tls by @ducaale in #2907
- v0.13.0 by @seanmonstar in #2915
New Contributors
- @CathalMullan made their first contribution in #2858
Full Changelog: v0.12.28...v0.13.0
v0.13.0-rc.1
π Discussion here if you give it try, thanks!
Main breaking changes
- rustls is now default instead of native-tls
- rustls provider defaults to aws-lc instead of ring (
rustls-no-providerexists if you want to enable a different one) - rustls-tls renamed to rustls
- rustls roots features removed, platform-verifier is used instead
- To use different roots instead, use
tls_certs_only(your_roots).
- To use different roots instead, use
- Many TLS-related methods renamed, but previous name left in place with a "soft" deprecated (just documented, no warnings).
- query and form are now crate features, disabled by default
- Long-deprecated methods and crate features have been removed.
PRs
- start 0.13 dev by @seanmonstar in #2894
- Make
serdeoptional by introducingquery,formfeatures, and re-working WASM header parsing by @CathalMullan in #2858 - replace
ClientBuilder::dns_resolverwithdns_resolver2by @seanmonstar in #2898 - feat: make Rustls the default TLS provider by @calavera in #2897
- feat: consolidate TLS options with rustls-platform-verifier by @seanmonstar in #2891
- remove long-deprecated methods: trust-dns and non-wasm-cors by @seanmonstar in #2899
- rename rustls-tls feature to just rustls by @seanmonstar in #2900
- remove deprecated features trust-dns and macos-system-configuration by @seanmonstar in #2901
- chore: separate rustls and rustls-no-provider features by @seanmonstar in #2903
- rustls: allow windows to use extra roots by @seanmonstar in #2904
- v0.13.0-rc.1 by @seanmonstar in #2905
New Contributors
- @CathalMullan made their first contribution in #2858
Full Changelog: v0.12.28...v0.13.0-rc.1
v0.12.28
What's Changed
- fix: correctly import TokioIo on Windows by @seanmonstar in #2896
Full Changelog: v0.12.27...v0.12.28
v0.12.27
tl;dr
- Add
ClientBuilder::windows_named_pipe(name)option that will force all requests over that Windows Named Pipe.
What's Changed
- chore: Disable unused tokio-util codec feature by @tottoto in #2893
- chore: Use http_body_util::BodyDataStream by @tottoto in #2892
- feat: add windows_named_pipe() option to client builder by @seanmonstar in #2789
Full Changelog: v0.12.26...v0.12.27
v0.12.26
tl;dr
- Fix sending
Accept-Encodingheader only with values configured with reqwest, regardless of underlying tower-http config.
What's Changed
- deps: update cookie_store by @seanmonstar in #2886
- fix: disable default compression from tower-http if not enabled in reqwest by @seanmonstar in #2889
- fix(http3): correct compression defaults by @seanmonstar in #2890
Full Changelog: v0.12.25...v0.12.26
v0.12.25
Highlights
- Add
Error::is_upgrade()to determine if the error was from an HTTP upgrade. - Fix sending
Proxy-Authorizationif only username is configured. - Fix sending
Proxy-Authorizationto HTTPS proxies when the target is HTTP. - Refactor internal decompression handling to use tower-http.
What's Changed
- tests: fix wasm timeout test with uncached response by @seanmonstar in #2853
- docs: document connection pooling behavior by @vinzmyko in #2851
- docs: document WASM client by @vinzmyko in #2859
- chore: minor improvement for docs by @black5box in #2862
- fix: send
proxy-authorizationeven with emptypasswordby @barjin in #2868 - feat(error): add
is_upgrademethod to detect protocol upgrade errors by @0x676e67 in #2822 - Use decompression from tower-http by @ducaale in #2840
- fix(proxy): forward Proxy-Authorization header to HTTPS proxies for HTTP targets by @0x676e67 in #2872
- v0.12.25 by @seanmonstar in #2880
New Contributors
- @vinzmyko made their first contribution in #2851
- @black5box made their first contribution in #2862
- @barjin made their first contribution in #2868
Full Changelog: v0.12.24...v0.12.25
v0.12.24
Highlights
- Refactor cookie handling to an internal middleware.
- Refactor internal random generator.
- Refactor base64 encoding to reduce a copy.
- Documentation updates.
What's Changed
- build(deps): silence unused deps in WASM build by @0x676e67 in #2799
- perf(util): avoid extra copy when base64 encoding by @0x676e67 in #2805
- docs: fix method name in changelog entry by @johannespfrang in #2807
- chore: Align the name usage of TotalTimeout by @Xuanwo in #2657
- refactor(cookie): add
CookieServiceby @linyihai in #2787 - Fixes typo in retry max_retries_per_request doc comment re 2813 by @dmackinn in #2824
- test(multipart): fix build failure with
no-default-featuresby @0x676e67 in #2801 - refactor(cookie): avoid duplicate cookie insertion by @0x676e67 in #2834
New Contributors
- @johannespfrang made their first contribution in #2807
- @dmackinn made their first contribution in #2824
Full Changelog: v0.12.23...v0.12.24
v0.12.23
tl;dr
- πΊπ©πΈ Add
ClientBuilder::unix_socket(path)option that will force all requests over that Unix Domain Socket. - π Add
ClientBuilder::retries(policy)andreqwest::retry::Builderto configure automatic retries. - Add
ClientBuilder::dns_resolver2()with more ergonomic argument bounds, allowing more resolver implementations. - Add
http3_*options toblocking::ClientBuilder. - Fix default TCP timeout values to enabled and faster.
- Fix SOCKS proxies to default to port 1080
- (wasm) Add cache methods to
RequestBuilder.
What's Changed
- Minimize package size by @weiznich in #2759
- chore(dev-dependencies): bump brotli by @seanmonstar in #2760
- upgrade hickory-dns to 0.25 by @seanmonstar in #2761
- Re-expose http3 options in blocking::clientBuilder by @ducaale in #2770
- fix(proxy): restore default port 1080 for SOCKS proxies without explicit port by @0x676e67 in #2771
- ci: use msrv-aware cargo in msrv job by @seanmonstar in #2779
- feat: add request cache option for wasm by @Spxg in #2775
- style(client): use
std::task::ready!macro to simplifyPollbranch match by @0x676e67 in #2781 - fix: add default tcp keepalive and user_timeout values by @seanmonstar in #2780
- feat: add unix_socket() option to client builder by @seanmonstar in #2624
- Add retry policies by @seanmonstar in #2763
- refactor: loosen retry
for_hostparameter bounds by @Enduriel in #2792 - feat: add dns_resolver2 that is more ergonomic and flexible by @seanmonstar in #2793
- Prepare v0.12.23 by @seanmonstar in #2795
New Contributors
- @weiznich made their first contribution in #2759
- @Spxg made their first contribution in #2775
- @Enduriel made their first contribution in #2792
Full Changelog: v0.12.22...v0.12.23
v0.12.22
tl;dr
- Fix socks proxies when resolving IPv6 destinations.
What's Changed
- fix(socks): bracket IPv6 addresses when formatting destination host by @0x676e67 in #2753
- Prepare v0.12.22 by @seanmonstar in #2754
Full Changelog: v0.12.21...v0.12.22