An easy and powerful Rust HTTP Client
ClientBuilder
.ClientBuilder::http1_allow_obsolete_multiline_headers_in_responses()
.impl Service<Request>
for Client
and &'_ Client
.RequestBuilder::basic_auth()
.RequestBuilder::header
to not override sensitive
if user explicitly set on a HeaderValue
.Error::url()
to access the URL of an error.Response::extensions()
to access the http::Extensions
of a response.rustls-native-certs
to log an error instead of panicking when loading an invalid system certificate.ClientBuilder::http09_responses(bool)
option to allow receiving HTTP/0.9 responses.blocking::ClientBuilder::resolve()
option, matching the async builder.From<tokio::fs::File>
for Body
.blocking
request-scoped timeout applying to bodies as well.rustls
to 0.20.ClientBuilder::http1_only()
method.tls::Version
type, and ClientBuilder::min_tls_version()
and ClientBuilder::max_tls_version()
methods.TryFrom<Request>
for http::Request
.Clone
for Identity
.NO_PROXY
environment variable parsing to more closely match curl's. Comma-separated entries are now trimmed for whitespace, and *
is allowed to match everything.https_only
option.Body::as_bytes()
method.JsValue
.ClientBuilder::resolve()
option to override DNS resolution for specific domains.native-tls-alpn
Cargo feature to use ALPN with the native-tls backend.ClientBuilder::deflate()
option and deflate
Cargo feature to support decoding response bodies using deflate.RequestBuilder::version()
to allow setting the HTTP version of a request.rustls-tls
backend, when the server uses TLS v1.2 or v1.3.try_clone
to Request
and RequestBuilder
impl From<hyper::Body> for reqwest::Body
.RequestBuilder
.CookieStore
trait to customize the type that stores and retrieves cookies for a session.cookie::Jar
as a default CookieStore
, easing creating some session cookies before creating the Client
.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.IntoUrl
for String
, making it more convenient to create requests with format!
.