gptcommit
gptcommit copied to clipboard
fix(deps): update rust crate reqwest to 0.12.0
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| reqwest | dependencies | minor | 0.11.20 -> 0.12.0 |
Release Notes
seanmonstar/reqwest (reqwest)
v0.12.9
- Add
tls::CertificateRevocationListssupport. - Add crate features to enable webpki roots without selecting a rustls provider.
- Fix
connection_verbose()to output read logs. - Fix
multipart::Part::file()to automatically include content-length. - Fix proxy to internally no longer cache system proxy settings.
v0.12.8
- Add support for SOCKS4 proxies.
- Add
multipart::Form::file()method for adding files easily. - Add
Body::wrap()to wrap anyhttp_body::Bodytype. - Fix the pool configuration to use a timer to remove expired connections.
v0.12.7
- Revert adding
impl Service<http::Request<_>>forClient.
v0.12.6
- Add support for
danger_accept_invalid_hostnamesforrustls. - Add
impl Service<http::Request<Body>>forClientand&'_ Client. - Add support for
!Syncbodies inBody::wrap_stream(). - Enable happy eyeballs when
hickory-dnsis used. - Fix
Proxyso thatHTTP(S)_PROXYvalues take precendence overALL_PROXY. - Fix
blocking::RequestBuilder::header()from unsettingsensitiveon passed header values.
v0.12.5
- Add
blocking::ClientBuilder::dns_resolver()method to change DNS resolver in blocking client. - Add
http3feature back, still requiringreqwest_unstable. - Add
rustls-tls-no-providerCargo feature to use rustls without a crypto provider. - Fix
Accept-Encodingheader combinations. - Fix http3 resolving IPv6 addresses.
- Internal: upgrade to rustls 0.23.
v0.12.4
- Add
zstdsupport, enabled withzstdCargo feature. - Add
ClientBuilder::read_timeout(Duration), which applies the duration for each read operation. The timeout resets after a successful read.
v0.12.3
- Add
FromStrfordns::Name. - Add
ClientBuilder::built_in_webpki_certs(bool)to enable them separately. - Add
ClientBuilder::built_in_native_certs(bool)to enable them separately. - Fix sending
content-length: 0for GET requests. - Fix response body
content_length()to return value when timeout is configured. - Fix
ClientBuilder::resolve()to use lowercase domain names.
v0.12.2
- Fix missing ALPN when connecting to socks5 proxy with rustls.
- Fix TLS version limits with rustls.
- Fix not detected ALPN h2 from server with native-tls.
v0.12.1
- Fix
ClientBuilder::interface()when no TLS is enabled. - Fix
TlsInfo::peer_certificate()being truncated with rustls. - Fix panic if
http2feature disabled but TLS negotiated h2 in ALPN. - Fix
DisplayforErrorto not include its source error.
v0.12.0
- Upgrade to
hyper,http, andhttp-bodyv1. - Add better support for converting to and from
http::Requestandhttp::Response. - Add
http2optional cargo feature, default on. - Add
charsetoptional cargo feature, default on. - Add
macos-system-configurationcargo feature, default on. - Change all optional dependencies to no longer be exposed as implicit features.
- Add
ClientBuilder::interface(str)to specify the local interface to bind to. - Experimental: disables the
http3feature temporarily.
v0.11.27
- Add
hickory-dnsfeature, deprecatingtrust-dns. - (wasm) Fix
Form::text()to not set octet-stream for plain text fields.
v0.11.26
- Revert
system-configurationupgrade, which broke MSRV on macOS.
v0.11.25
- Fix
Certificate::from_pem_bundle()parsing. - Fix Apple linker errors from detecting system proxies.
v0.11.24
- Add
Certificate::from_pem_bundle()to add a bundle. - Add
http3_prior_knowledge()to blocking client builder. - Remove
Syncbounds requirement forBody::wrap_stream(). - Fix HTTP/2 to retry
REFUSED_STREAMrequests. - Fix instances of converting
UrltoUrithat could panic.
v0.11.23
- Add
Proxy::custom_http_auth(val)for setting the rawProxy-Authorizationheader when connecting to proxies. - Fix redirect to reject locations that are not
http://orhttps://. - Fix setting
nodelaywhen TLS is enabled but URL is HTTP. - (wasm) Add
ClientBuilder::user_agent(val). - (wasm) add
multipart::Form::headers(headers).
v0.11.22
- Fix compilation on Windows when
trust-dnsis enabled.
v0.11.21
- Add automatically detecting macOS proxy settings.
- Add
ClientBuilder::tls_info(bool), which will puttls::TlsInfointo the response extensions. - Fix trust-dns resolver from possible hangs.
- Fix connect timeout to be split among multiple IP addresses.
v0.11.20
- Fix
deflatedecompression back to using zlib, as outlined in the spec.
v0.11.19
- Add
ClientBuilder::http1_ignore_invalid_headers_in_responses()option. - Add
ClientBuilder::http1_allow_spaces_after_header_name_in_responses()option. - Add support for
ALL_PROXYenvironment variable. - Add support for
use_preconfigured_tlswhen combined with HTTP/3. - Fix
deflatedecompression from using the zlib decoder. - Fix
Response::{text, text_with_charset}()to strip BOM characters. - Fix a panic when HTTP/3 is used if UDP isn't able to connect.
- Fix some dependencies for HTTP/3.
- Increase MSRV to 1.63.
v0.11.18
- Fix
RequestBuilder::json()method from overriding a previously setcontent-typeheader. An existing value will be left in place. - Upgrade internal dependencies for rustls and compression.
v0.11.17
- Upgrade internal dependencies of Experimental HTTP/3 to use quinn v0.9
- (wasm) Fix blob url support
v0.11.16
- Chore: set MSRV in
Cargo.toml. - Docs: fix build on docs.rs
v0.11.15
- Add
RequestBuildermethods to split and reconstruct from its parts. - Add experimental HTTP/3 support.
- Fix
connection_verboseto logwrite_vectoredcalls. - (wasm) Make requests actually cancel if the future is dropped.
v0.11.14
- Adds
Proxy::no_proxy(url)that works like the NO_PROXY environment variable. - Adds
multipart::Part::headers(headers)method to add custom headers. - (wasm) Add
Response::bytes_stream(). - Perf: several internal optimizations reducing copies and memory allocations.
v0.11.13
- Add
ClientBuilder::dns_resolver()option for custom DNS resolvers. - Add
ClientBuilder::tls_sni(bool)option to enable or disable TLS Server Name Indication. - Add
Identity::from_pkcs8_pem()constructor when usingnative-tls. - Fix
redirect::Policy::limited(0)from following any redirects.
v0.11.12
- Add
ClientBuilder::resolve_to_addrs()which allows a slice of IP addresses to be specified for a single host. - Add
Response::upgrade()to await whether the server agrees to an HTTP upgrade.
v0.11.11
- Add HTTP/2 keep-alive configuration methods on
ClientBuilder. - Add
ClientBuilder::http1_allow_obsolete_multiline_headers_in_responses(). - Add
impl Service<Request>forClientand&'_ Client. - (wasm) Add
RequestBuilder::basic_auth(). - Fix
RequestBuilder::headerto not overridesensitiveif user explicitly set on aHeaderValue. - Fix rustls parsing of elliptic curve private keys.
- Fix Proxy URL parsing of some invalid targets.
v0.11.10
- Add
Error::url()to access the URL of an error. - Add
Response::extensions()to access thehttp::Extensionsof a response. - Fix
rustls-native-certsto log an error instead of panicking when loading an invalid system certificate. - Fix passing Basic Authorization header to proxies.
v0.11.9
- Add
ClientBuilder::http09_responses(bool)option to allow receiving HTTP/0.9 responses. - Fix HTTP/2 to retry requests interrupted by an HTTP/2 graceful shutdown.
- Fix proxy loading from environment variables to ignore empty values.
v0.11.8
- Update internal webpki-roots dependency.
v0.11.7
- Add
blocking::ClientBuilder::resolve()option, matching the async builder. - Implement
From<tokio::fs::File>forBody. - Fix
blockingrequest-scoped timeout applying to bodies as well. - (wasm) Fix request bodies using multipart vs formdata.
- Update internal
rustlsto 0.20.
v0.11.6
- (wasm) Fix request bodies more.
v0.11.5
- Add
ClientBuilder::http1_only()method. - Add
tls::Versiontype, andClientBuilder::min_tls_version()andClientBuilder::max_tls_version()methods. - Implement
TryFrom<Request>forhttp::Request. - Implement
CloneforIdentity. - Fix
NO_PROXYenvironment variable parsing to more closely match curl's. Comma-separated entries are now trimmed for whitespace, and*is allowed to match everything. - Fix redirection to respect
https_onlyoption. - (wasm) Add
Body::as_bytes()method. - (wasm) Fix sometimes wrong conversation of bytes into a
JsValue. - (wasm) Avoid dependency on serde-serialize feature.
v0.11.4
- Add
ClientBuilder::resolve()option to override DNS resolution for specific domains. - Add
native-tls-alpnCargo feature to use ALPN with the native-tls backend. - Add
ClientBuilder::deflate()option anddeflateCargo feature to support decoding response bodies using deflate. - Add
RequestBuilder::version()to allow setting the HTTP version of a request. - Fix allowing "invalid" certificates with the
rustls-tlsbackend, when the server uses TLS v1.2 or v1.3. - (wasm) Add
try_clonetoRequestandRequestBuilder
v0.11.3
- Add
impl From<hyper::Body> for reqwest::Body. - (wasm) Add credentials mode methods to
RequestBuilder.
v0.11.2
- Add
CookieStoretrait to customize the type that stores and retrieves cookies for a session. - Add
cookie::Jaras a defaultCookieStore, easing creating some session cookies before creating theClient. - Add
ClientBuilder::http2_adaptive_window()option to configure an adaptive HTTP2 flow control behavior. - Add
ClientBuilder::http2_max_frame_size()option to adjust the maximum HTTP2 frame size that can be received. - Implement
IntoUrlforString, making it more convenient to create requests withformat!.
v0.11.1
- Add
ClientBuilder::tls_built_in_root_certs()option to disable built-in root certificates. - Fix
rustls-tlsglue to more often support ALPN to upgrade to HTTP/2. - Fix proxy parsing to assume
http://if no scheme is found. - Fix connection pool idle reaping by enabling hyper's
runtimefeature. - (wasm) Add
Request::new()constructor.
Configuration
📅 Schedule: Branch creation - "* * 1 */3 *" (UTC), 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.