Update Rust crate reqwest to 0.13 #10
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9→0.13Release Notes
seanmonstar/reqwest (reqwest)
v0.13.1Compare Source
v0.13.0Compare Source
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-platform-verifieris used by default.tls_certs_only(your_roots).native-tlsnow includes ALPN. To disable, usenative-tls-no-alpn.queryandformare now crate features, disabled by default.trust-dns, which was renamedhickory-dnsa while ago).tls_backend_rustls()overuse_rustls_tls().v0.12.28
v0.12.27
ClientBuilder::windows_named_pipe(name)option that will force all requests over that Windows Named Piper.v0.12.26
Accept-Encodingheader only with values configured with reqwest, regardless of underlying tower-http config.v0.12.25
Error::is_upgrade()to determine if the error was from an HTTP upgrade.Proxy-Authorizationif only username is configured.Proxy-Authorizationto HTTPS proxies when the target is HTTP.v0.12.24
v0.12.23
ClientBuilder::unix_socket(path)option that will force all requests over that Unix Domain Socket.ClientBuilder::retry(policy)andreqwest::retry::Builderto configure automatic retries.ClientBuilder::dns_resolver2()with more ergonomic argument bounds, allowing more resolver implementations.http3_*options toblocking::ClientBuilder.RequestBuilder.v0.12.22
v0.12.21
socks4a://instead ofsocks4h://.Error::is_timeout()to check for hyper and IO timeouts too.Errorto again include URLs when possible.DefaultforBody.v0.12.20
ClientBuilder::tcp_user_timeout(Duration)option to setTCP_USER_TIMEOUT.Error::is_status().v0.12.19
cookiesfeature is enabled (by the way, it's a noop feature in wasm).v0.12.18
socksenabled without TLS.v0.12.17
v0.12.16
ClientBuilder::http3_congestion_bbr()to enable BBR congestion control.ClientBuilder::http3_send_grease()to configure whether to send use QUIC grease.ClientBuilder::http3_max_field_section_size()to configure the maximum response headers.ClientBuilder::tcp_keepalive_interval()to configure TCP probe interval.ClientBuilder::tcp_keepalive_retries()to configure TCP probe count.Proxy::headers()to add extra headers that should be sent to a proxy.redirect::Policy::limit()which had an off-by-1 error, allowing 1 more redirect than specified.Response::bytes_stream().v0.12.15
ProxyOverrideandNO_PROXY.v0.12.14
fetch_mode_no_cors(), marking as deprecated when not on WASM.v0.12.13
Form::into_reader()for blockingmultipartforms.Form::into_stream()for asyncmultipartforms.RequestBuilder::form()from overwriting a previously setContent-Typeheader, like the other builder methods.blocking::Request.ProxyOverrideas aNO_PROXYvalue.Error::is_timeout()to return true when from a request timeout.v0.12.12
tokio/timeon WASM.v0.12.11
v0.12.10
ClientBuilder::connector_layer()to allow customizing the connector stack.ClientBuilder::http2_max_header_list_size()option.content-length) information when wrapping bodies.v0.12.9
tls::CertificateRevocationListssupport.connection_verbose()to output read logs.multipart::Part::file()to automatically include content-length.v0.12.8
multipart::Form::file()method for adding files easily.Body::wrap()to wrap anyhttp_body::Bodytype.v0.12.7
impl Service<http::Request<_>>forClient.v0.12.6
danger_accept_invalid_hostnamesforrustls.impl Service<http::Request<Body>>forClientand&'_ Client.!Syncbodies inBody::wrap_stream().hickory-dnsis used.Proxyso thatHTTP(S)_PROXYvalues take precedence overALL_PROXY.blocking::RequestBuilder::header()from unsettingsensitiveon passed header values.v0.12.5
blocking::ClientBuilder::dns_resolver()method to change DNS resolver in blocking client.http3feature back, still requiringreqwest_unstable.rustls-tls-no-providerCargo feature to use rustls without a crypto provider.Accept-Encodingheader combinations.v0.12.4
zstdsupport, enabled withzstdCargo feature.ClientBuilder::read_timeout(Duration), which applies the duration for each read operation. The timeout resets after a successful read.v0.12.3
FromStrfordns::Name.ClientBuilder::built_in_webpki_certs(bool)to enable them separately.ClientBuilder::built_in_native_certs(bool)to enable them separately.content-length: 0for GET requests.content_length()to return value when timeout is configured.ClientBuilder::resolve()to use lowercase domain names.v0.12.2
v0.12.1
ClientBuilder::interface()when no TLS is enabled.TlsInfo::peer_certificate()being truncated with rustls.http2feature disabled but TLS negotiated h2 in ALPN.DisplayforErrorto not include its source error.v0.12.28Compare Source
v0.12.27Compare Source
ClientBuilder::windows_named_pipe(name)option that will force all requests over that Windows Named Piper.v0.12.26Compare Source
Accept-Encodingheader only with values configured with reqwest, regardless of underlying tower-http config.v0.12.25Compare Source
Error::is_upgrade()to determine if the error was from an HTTP upgrade.Proxy-Authorizationif only username is configured.Proxy-Authorizationto HTTPS proxies when the target is HTTP.v0.12.24Compare Source
v0.12.23Compare Source
ClientBuilder::unix_socket(path)option that will force all requests over that Unix Domain Socket.ClientBuilder::retry(policy)andreqwest::retry::Builderto configure automatic retries.ClientBuilder::dns_resolver2()with more ergonomic argument bounds, allowing more resolver implementations.http3_*options toblocking::ClientBuilder.RequestBuilder.v0.12.22Compare Source
v0.12.21Compare Source
socks4a://instead ofsocks4h://.Error::is_timeout()to check for hyper and IO timeouts too.Errorto again include URLs when possible.DefaultforBody.v0.12.20Compare Source
ClientBuilder::tcp_user_timeout(Duration)option to setTCP_USER_TIMEOUT.Error::is_status().v0.12.19Compare Source
cookiesfeature is enabled (by the way, it's a noop feature in wasm).v0.12.18Compare Source
socksenabled without TLS.v0.12.17Compare Source
v0.12.16Compare Source
ClientBuilder::http3_congestion_bbr()to enable BBR congestion control.ClientBuilder::http3_send_grease()to configure whether to send use QUIC grease.ClientBuilder::http3_max_field_section_size()to configure the maximum response headers.ClientBuilder::tcp_keepalive_interval()to configure TCP probe interval.ClientBuilder::tcp_keepalive_retries()to configure TCP probe count.Proxy::headers()to add extra headers that should be sent to a proxy.redirect::Policy::limit()which had an off-by-1 error, allowing 1 more redirect than specified.Response::bytes_stream().v0.12.15Compare Source
ProxyOverrideandNO_PROXY.v0.12.14Compare Source
fetch_mode_no_cors(), marking as deprecated when not on WASM.v0.12.13Compare Source
Form::into_reader()for blockingmultipartforms.Form::into_stream()for asyncmultipartforms.RequestBuilder::form()from overwriting a previously setContent-Typeheader, like the other builder methods.blocking::Request.ProxyOverrideas aNO_PROXYvalue.Error::is_timeout()to return true when from a request timeout.v0.12.12Compare Source
tokio/timeon WASM.v0.12.11Compare Source
v0.12.10Compare Source
ClientBuilder::connector_layer()to allow customizing the connector stack.ClientBuilder::http2_max_header_list_size()option.content-length) information when wrapping bodies.v0.12.9Compare Source
tls::CertificateRevocationListssupport.connection_verbose()to output read logs.multipart::Part::file()to automatically include content-length.v0.12.8Compare Source
multipart::Form::file()method for adding files easily.Body::wrap()to wrap anyhttp_body::Bodytype.v0.12.7Compare Source
impl Service<http::Request<_>>forClient.v0.12.6Compare Source
danger_accept_invalid_hostnamesforrustls.impl Service<http::Request<Body>>forClientand&'_ Client.!Syncbodies inBody::wrap_stream().hickory-dnsis used.Proxyso thatHTTP(S)_PROXYvalues take precedence overALL_PROXY.blocking::RequestBuilder::header()from unsettingsensitiveon passed header values.v0.12.5Compare Source
blocking::ClientBuilder::dns_resolver()method to change DNS resolver in blocking client.http3feature back, still requiringreqwest_unstable.rustls-tls-no-providerCargo feature to use rustls without a crypto provider.Accept-Encodingheader combinations.v0.12.4Compare Source
zstdsupport, enabled withzstdCargo feature.ClientBuilder::read_timeout(Duration), which applies the duration for each read operation. The timeout resets after a successful read.v0.12.3Compare Source
FromStrfordns::Name.ClientBuilder::built_in_webpki_certs(bool)to enable them separately.ClientBuilder::built_in_native_certs(bool)to enable them separately.content-length: 0for GET requests.content_length()to return value when timeout is configured.ClientBuilder::resolve()to use lowercase domain names.v0.12.2Compare Source
v0.12.1Compare Source
cookiesfeature is enabled (by the way, it's a noop feature in wasm).v0.12.0Compare Source
hyper,http, andhttp-bodyv1.http::Requestandhttp::Response.http2optional cargo feature, default on.charsetoptional cargo feature, default on.macos-system-configurationcargo feature, default on.ClientBuilder::interface(str)to specify the local interface to bind to.http3feature temporarily.v0.11.27
hickory-dnsfeature, deprecatingtrust-dns.Form::text()to not set octet-stream for plain text fields.v0.11.26
system-configurationupgrade, which broke MSRV on macOS.v0.11.25
Certificate::from_pem_bundle()parsing.v0.11.24
Certificate::from_pem_bundle()to add a bundle.http3_prior_knowledge()to blocking client builder.Syncbounds requirement forBody::wrap_stream().REFUSED_STREAMrequests.UrltoUrithat could panic.v0.11.23
Proxy::custom_http_auth(val)for setting the rawProxy-Authorizationheader when connecting to proxies.http://orhttps://.nodelaywhen TLS is enabled but URL is HTTP.ClientBuilder::user_agent(val).multipart::Form::headers(headers).v0.11.22
trust-dnsis enabled.v0.11.21
ClientBuilder::tls_info(bool), which will puttls::TlsInfointo the response extensions.v0.11.20
deflatedecompression back to using zlib, as outlined in the spec.v0.11.19
ClientBuilder::http1_ignore_invalid_headers_in_responses()option.ClientBuilder::http1_allow_spaces_after_header_name_in_responses()option.ALL_PROXYenvironment variable.use_preconfigured_tlswhen combined with HTTP/3.deflatedecompression from using the zlib decoder.Response::{text, text_with_charset}()to strip BOM characters.v0.11.18
RequestBuilder::json()method from overriding a previously setcontent-typeheader. An existing value will be left in place.v0.11.17
v0.11.16
Cargo.toml.v0.11.15
RequestBuildermethods to split and reconstruct from its parts.connection_verboseto logwrite_vectoredcalls.v0.11.14
Proxy::no_proxy(url)that works like the NO_PROXY environment variable.multipart::Part::headers(headers)method to add custom headers.Response::bytes_stream().v0.11.13
ClientBuilder::dns_resolver()option for custom DNS resolvers.ClientBuilder::tls_sni(bool)option to enable or disable TLS Server Name Indication.Identity::from_pkcs8_pem()constructor when usingnative-tls.redirect::Policy::limited(0)from following any redirects.v0.11.12
ClientBuilder::resolve_to_addrs()which allows a slice of IP addresses to be specified for a single host.Response::upgrade()to await whether the server agrees to an HTTP upgrade.v0.11.11
ClientBuilder.ClientBuilder::http1_allow_obsolete_multiline_headers_in_responses().impl Service<Request>forClientand&'_ Client.RequestBuilder::basic_auth().RequestBuilder::headerto not overridesensitiveif user explicitly set on aHeaderValue.v0.11.10
Error::url()to access the URL of an error.Response::extensions()to access thehttp::Extensionsof a response.rustls-native-certsto log an error instead of panicking when loading an invalid system certificate.v0.11.9
ClientBuilder::http09_responses(bool)option to allow receiving HTTP/0.9 responses.v0.11.8
v0.11.7
blocking::ClientBuilder::resolve()option, matching the async builder.From<tokio::fs::File>forBody.blockingrequest-scoped timeout applying to bodies as well.rustlsto 0.20.v0.11.6
v0.11.5
ClientBuilder::http1_only()method.tls::Versiontype, andClientBuilder::min_tls_version()andClientBuilder::max_tls_version()methods.TryFrom<Request>forhttp::Request.CloneforIdentity.NO_PROXYenvironment variable parsing to more closely match curl's. Comma-separated entries are now trimmed for whitespace, and*is allowed to match everything.https_onlyoption.Body::as_bytes()method.JsValue.v0.11.4
ClientBuilder::resolve()option to override DNS resolution for specific domains.native-tls-alpnCargo feature to use ALPN with the native-tls backend.ClientBuilder::deflate()option anddeflateCargo feature to support decoding response bodies using deflate.RequestBuilder::version()to allow setting the HTTP version of a request.rustls-tlsbackend, when the server uses TLS v1.2 or v1.3.try_clonetoRequestandRequestBuilderv0.11.3
impl From<hyper::Body> for reqwest::Body.RequestBuilder.v0.11.2
CookieStoretrait to customize the type that stores and retrieves cookies for a session.cookie::Jaras a defaultCookieStore, easing creating some session cookies before creating theClient.ClientBuilder::http2_adaptive_window()option to configure an adaptive HTTP2 flow control behavior.ClientBuilder::http2_max_frame_size()option to adjust the maximum HTTP2 frame size that can be received.IntoUrlforString, making it more convenient to create requests withformat!.v0.11.1
ClientBuilder::tls_built_in_root_certs()option to disable built-in root certificates.rustls-tlsglue to more often support ALPN to upgrade to HTTP/2.http://if no scheme is found.runtimefeature.Request::new()constructor.v0.11.27Compare Source
hickory-dnsfeature, deprecatingtrust-dns.Form::text()to not set octet-stream for plain text fields.v0.11.26Compare Source
system-configurationupgrade, which broke MSRV on macOS.v0.11.25Compare Source
Certificate::from_pem_bundle()parsing.v0.11.24Compare Source
Certificate::from_pem_bundle()to add a bundle.http3_prior_knowledge()to blocking client builder.Syncbounds requirement forBody::wrap_stream().REFUSED_STREAMrequests.UrltoUrithat could panic.v0.11.23Compare Source
Proxy::custom_http_auth(val)for setting the rawProxy-Authorizationheader when connecting to proxies.http://orhttps://.nodelaywhen TLS is enabled but URL is HTTP.ClientBuilder::user_agent(val).multipart::Form::headers(headers).v0.11.22Compare Source
trust-dnsis enabled.v0.11.21Compare Source
ClientBuilder::tls_info(bool), which will puttls::TlsInfointo the response extensions.v0.11.20Compare Source
deflatedecompression back to using zlib, as outlined in the spec.v0.11.19Compare Source
ClientBuilder::http1_ignore_invalid_headers_in_responses()option.ClientBuilder::http1_allow_spaces_after_header_name_in_responses()option.ALL_PROXYenvironment variable.use_preconfigured_tlswhen combined with HTTP/3.deflatedecompression from using the zlib decoder.Response::{text, text_with_charset}()to strip BOM characters.v0.11.18Compare Source
RequestBuilder::json()method from overriding a previously setcontent-typeheader. An existing value will be left in place.v0.11.17Compare Source
v0.11.16Compare Source
Cargo.toml.v0.11.15Compare Source
RequestBuildermethods to split and reconstruct from its parts.connection_verboseto logwrite_vectoredcalls.v0.11.14Compare Source
Proxy::no_proxy(url)that works like the NO_PROXY environment variable.multipart::Part::headers(headers)method to add custom headers.Response::bytes_stream().v0.11.13Compare Source
ClientBuilder::dns_resolver()option for custom DNS resolvers.ClientBuilder::tls_sni(bool)option to enable or disable TLS Server Name Indication.Identity::from_pkcs8_pem()constructor when usingnative-tls.redirect::Policy::limited(0)from following any redirects.v0.11.12Compare Source
ClientBuilder::resolve_to_addrs()which allows a slice of IP addresses to be specified for a single host.Response::upgrade()to await whether the server agrees to an HTTP upgrade.v0.11.11Compare Source
ClientBuilder.ClientBuilder::http1_allow_obsolete_multiline_headers_in_responses().impl Service<Request>forClientand&'_ Client.RequestBuilder::basic_auth().RequestBuilder::headerto not overridesensitiveif user explicitly set on aHeaderValue.v0.11.10Compare Source
Error::url()to access the URL of an error.Response::extensions()to access thehttp::Extensionsof a response.rustls-native-certsto log an error instead of panicking when loading an invalid system certificate.v0.11.9Compare Source
ClientBuilder::http09_responses(bool)option to allow receiving HTTP/0.9 responses.v0.11.8Compare Source
v0.11.7Compare Source
blocking::ClientBuilder::resolve()option, matching the async builder.From<tokio::fs::File>forBody.blockingrequest-scoped timeout applying to bodies as well.rustlsto 0.20.v0.11.6Compare Source
v0.11.5Compare Source
ClientBuilder::http1_only()method.tls::Versiontype, andClientBuilder::min_tls_version()andClientBuilder::max_tls_version()methods.TryFrom<Request>forhttp::Request.CloneforIdentity.NO_PROXYenvironment variable parsing to more closely match curl's. Comma-separated entries are now trimmed for whitespace, and*is allowed to match everything.https_onlyoption.Body::as_bytes()method.JsValue.v0.11.4Compare Source
ClientBuilder::resolve()option to override DNS resolution for specific domains.native-tls-alpnCargo feature to use ALPN with the native-tls backend.ClientBuilder::deflate()option anddeflateCargo feature to support decoding response bodies using deflate.RequestBuilder::version()to allow setting the HTTP version of a request.rustls-tlsbackend, when the server uses TLS v1.2 or v1.3.try_clonetoRequestandRequestBuilderv0.11.3Compare Source
impl From<hyper::Body> for reqwest::Body.RequestBuilder.v0.11.2Compare Source
hickory-dnsfeature, deprecatingtrust-dns.Form::text()to not set octet-stream for plain text fields.v0.11.1Compare Source
ClientBuilder::http1_ignore_invalid_headers_in_responses()option.ClientBuilder::http1_allow_spaces_after_header_name_in_responses()option.ALL_PROXYenvironment variable.use_preconfigured_tlswhen combined with HTTP/3.deflatedecompression from using the zlib decoder.Response::{text, text_with_charset}()to strip BOM characters.v0.11.0Compare Source
Change
multipartto be an optional cargo feature.Remove deprecated methods.
Update to Tokio v1.0.
Update to Bytes v1.0.
Update to hyper v0.14.
v0.10.10
tcp_keepaliveoption toblocking::ClientBuilder.multipart::Part::stream_with_lengthconstructor, to create a streaming part with a known length.ClientBuilder::https_onlyoption, to allow requiring URLs to behttps.tcp_keepalivevalue to be disabled.v0.10.9
rustls-tls-native-roots,rustls-tls-webpki-roots, andrustls-tls-manual-rootsCargo features, to configure which certificate roots to use with rustls.ClientBuilder::tcp_keepalive()method to enable TCP keepalive.ClientBuilder::http1_writev()method to force enable or disable vectored writes.Error::is_connect()method to identify if the error is related to connection-establishment.blocking::ClientBuilder::brotli()method.ClientBuilder::default_headers()method.RequestBuilder::build()method.v0.10.8
must_usetoRequestBuilderandClientBuilder.headersmethod toRequestBuilder.executemethod toClient.TryFrom<http::Request>forRequest.windowto work in non-browser environments.v0.10.7
NO_PROXYenvironment variable support.Error::{is_request, is_body, is_decode}getters.reqwest::ClientBuildertoreqwest::blocking::ClientBuilder.headers_mut()toreqwest::blocking::Response.form(),query(),multipartandbearer_auth()toRequestBuilder.v0.10.6
http:orhttps:schemes, returning an error instead.v0.10.5
ClientBuilder::pool_idle_timeoutoption.ClientBuilder::pool_max_idle_per_hostoption, deprecatemax_idle_per_host.Response::content_lengthfor WASM target.TryFrom<http::Request>forblocking::Request.TryFrom<http::Request>forRequest.From<http::Request>forRequest.http::Requestto areqwest::Requestin an infallible fashion. It would panic if the conversion was not possible. Instead, the implementation has been changed toTryFromto indicate it could fail.v0.10.4
trust-dnsoptional feature to change DNS resolver.bytes()method toreqwest::blocking::Response.buffer()method toreqwest::blocking::Body.From<http::Request>forreqwest::Request.v0.10.3
rustlsversion.v0.10.2
brotlifeature.Client::use_preconfigured_tls(tls_connector)allowing manual configuration of TLS options.Defaultfor blockingClient,ClientBuilder, andmultipart::Form.Response::error_for_status()method.Response::json()method.DefaultforClientandClientBuilder.v0.10.1
socksoptional feature to support SOCKS5 proxies.RequestBuilder::timeout()to configure a timeout for a single request, instead of using the client's timeout.ClientBuilder::connection_verbose()option to enable verbose IO logs.RequestBuilder::fetch_mode_no_cors()option.Response::url()getter method.v0.10.10Compare Source
tcp_keepaliveoption toblocking::ClientBuilder.multipart::Part::stream_with_lengthconstructor, to create a streaming part with a known length.ClientBuilder::https_onlyoption, to allow requiring URLs to behttps.tcp_keepalivevalue to be disabled.v0.10.9Compare Source
rustls-tls-native-roots,rustls-tls-webpki-roots, andrustls-tls-manual-rootsCargo features, to configure which certificate roots to use with rustls.ClientBuilder::tcp_keepalive()method to enable TCP keepalive.ClientBuilder::http1_writev()method to force enable or disable vectored writes.Error::is_connect()method to identify if the error is related to connection-establishment.blocking::ClientBuilder::brotli()method.ClientBuilder::default_headers()method.RequestBuilder::build()method.v0.10.8Compare Source
must_usetoRequestBuilderandClientBuilder.headersmethod toRequestBuilder.executemethod toClient.TryFrom<http::Request>forRequest.windowto work in non-browser environments.v0.10.7Compare Source
NO_PROXYenvironment variable support.Error::{is_request, is_body, is_decode}getters.reqwest::ClientBuildertoreqwest::blocking::ClientBuilder.headers_mut()toreqwest::blocking::Response.form(),query(),multipartandbearer_auth()toRequestBuilder.v0.10.6Compare Source
http:orhttps:schemes, returning an error instead.v0.10.5Compare Source
ClientBuilder::pool_idle_timeoutoption.ClientBuilder::pool_max_idle_per_hostoption, deprecatemax_idle_per_host.Response::content_lengthfor WASM target.TryFrom<http::Request>forblocking::Request.TryFrom<http::Request>forRequest.From<http::Request>forRequest.http::Requestto areqwest::Requestin an infallible fashion. It would panic if the conversion was not possible. Instead, the implementation has been changed toTryFromto indicate it could fail.v0.10.4Compare Source
trust-dnsoptional feature to change DNS resolver.bytes()method toreqwest::blocking::Response.buffer()method toreqwest::blocking::Body.From<http::Request>forreqwest::Request.v0.10.3Compare Source
rustlsversion.v0.10.2Compare Source
brotlifeature.Client::use_preconfigured_tls(tls_connector)allowing manual configuration of TLS options.Defaultfor blockingClient,ClientBuilder, andmultipart::Form.Response::error_for_status()method.Response::json()method.DefaultforClientandClientBuilder.v0.10.1Compare Source
tcp_keepaliveoption toblocking::ClientBuilder.multipart::Part::stream_with_lengthconstructor, to create a streaming part with a known length.ClientBuilder::https_onlyoption, to allow requiring URLs to behttps.tcp_keepalivevalue to be disabled.v0.10.0Compare Source
Add
std::future::Futuresupport.Add
wasm32-unknown-unknownsupport (with fewer features).Add ability to pass async
Responseas thebodyof anotherRequest.Add
Body::as_bytes()method.Add
Response::bytes_stream()method to get body as animpl Stream.Add
Request::try_clone()method.Change default
ClientAPI to async. The previous blocking client API is available atreqwest::blocking.Change to no longer send a default
User-Agentheader. Add one viaClientBuilder::user_agent().Change to enable system/environment proxy detection by default.
Change
default-tlsfeature to only includeClientBuilderoptions that bothnative-tlsandrustlssupport.Change default feature set to reduce unnecessary dependencies. Most features are disabled by default:
blocking: Thereqwest::blocking(synchronous) client API.cookies: Cookie store support.gzip: Automatic response body decompression.json: Request and response JSON body methods.stream:futures::Streamsupport.Change
Errorinternal design, removing severalError::is_*inspector methods.Change Redirect API:
redirectmodule (for example,reqwest::RedirectPolicyis nowreqwest::redirect::Policy).loop_detectedandtoo_many_redirectmethods fromredirect::Attempt, replaced with a genericerrormethod.Fix checking
HTTP_PROXYenvironment variable if it the environment is from a CGI script.Fix removal of username/password of parsed proxy URL.
Update
urlto v2.0.Update
hyperto v0.13.Update
httpto v0.2.v0.9.19
ClientBuilder::use_sys_proxy()to enable automatic detect of HTTP proxies configured on the system.ClientBuilder::no_proxy()to disable system proxies. This is the default for 0.9, but will change to detecting system proxies by default in 0.10.async::Response::text()that returns aFutureof the full body decoded to aString.CloneforCertificate.v0.9.18
Cookieheaders to no longer send as percent-encoded (instead, exactly as sent by the server).v0.9.17
Cookieheaders to not include attributes from theSet-Cookie(likeHttpOnly,Secure, etc.)v0.9.16
Response::text_with_charset()to allow setting the default charset to decode.Error::source()implementation.async::ClientBuilder::timeout()option, will timeout the connect, request, and response body futures.RequestBuilder::query()to not add just"?"if the encoded query is empty.v0.9.15
v0.9.14
socks5cargo feature.Client, automatically handling cookies for a session.ClientBuilder::cookie_store(enable: bool)method to enable a cookie store that persists across requests.Response::cookies()accessor that allows iterating over response cookies.Proxyto check the URL for a username and password.v0.9.13
Fixes
Locationheaders during redirects (error is logged and redirect response is returned instead).v0.9.12
Features
ClientBuilder::tcp_nodelay()to allow disabling Nagle's algorithm.ClientBuilder::max_idle_per_host()to allow reducing the number of idle pooled connections.RequestBuilder::bearer_auth()method to async builder.Fixes
RequestBuilder::basic_auth().v0.9.11
Features
multipart::Form::percent_encode_noop()to allow for servers which don't support percent encoding of parameters.ClientBuilder::http1_title_case_headers()to force request headers to use Title-Case.ClientBuilder::connect_timeout()to allow setting only a connect timeout.v0.9.10
Features
ClientBuilder::local_address()to bind to a local IP address.Response::error_for_status_ref()to return anErrorwhile borrowing aResponse.Fixes
Identity::from_pemwithrustls-tlsbackend when using RSA private keys.v0.9.9
Features
ClientBuilder::h2_prior_knowledge()option to force HTTP2.Response::content_length()to get the content-length of a response.v0.9.8
Fixes
getaddrinfoin a threadpool. There is now atrust-dnsoptional feature to enable the Trust-DNS resolver.CertificateandIdentityerrors at construction time.v0.9.7
Fixes
getaddrinfo).filenames inmultipart/form-datarequests.v0.9.6
Features
Proxy::basic_authmethod to support proxy authorization.rustls-tlsoptional feature to use rustls instead of native-tls.try_clonemethod toRequestandRequestBuilder.reqwest::async::multipartsupport, similar to the synchronous API.default-tls-vendoredoptional feature to vendor OpenSSL.Fixes
reqwest::getif client builder fails to build.reqwest::Clientruntime to startup.RequestBuilder::headersto properly append extra headers of the same name.Performance
getaddrinfowith a non-blocking DNS resolver.v0.9.5
Features
Response::remote_addr()method to check the address of the connection used.default-tlscrate feature, enabled by default, which allows users to disable TLS.v0.9.4
Features
percent_encoding_path_segmentandpercent_encoding_attr_charconfiguration tomultipart::Form.Fixes
multipart::Formdefault percent encoding format topath-segment.v0.9.3
Features
multipart::Part::bytes()to create a part of raw bytes.Responseto help with testing.Fixes
v0.9.2
Fixes
Locationheader has UTF-8 characters.v0.9.1
Fixes
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.
This PR was generated by Mend Renovate. View the repository job log.