Releases: seanmonstar/reqwest
v0.10.7
- Add
NO_PROXY
environment variable support. - Add more
Error::{is_request, is_body, is_decode}
getters. - Add conversion of
reqwest::ClientBuilder
toreqwest::blocking::ClientBuilder
. - Add
headers_mut()
toreqwest::blocking::Response
. - (wasm) Add
form()
,query()
,multipart
andbearer_auth()
toRequestBuilder
.
v0.10.6
- Changed handling of URLs that don't have
http:
orhttps:
schemes, returning an error instead. - Fixed a potential hyper-rustls feature conflict.
v0.10.5
- Add
ClientBuilder::pool_idle_timeout
option. - Add
ClientBuilder::pool_max_idle_per_host
option, deprecatemax_idle_per_host
. - Add
Response::content_length
for WASM target. - Enable TCP_NODELAY by default.
- Implement
TryFrom<http::Request>
forblocking::Request
. - Implement
TryFrom<http::Request>
forRequest
.- Removes
From<http::Request>
forRequest
. - This is technically a breaking change, but was a mistake. It was not valid to convert from an
http::Request
to areqwest::Request
in an infallible fashion. It would panic if the conversion was not possible. Instead, the implementation has been changed toTryFrom
to indicate it could fail.
- Removes
v0.10.4
- Add
trust-dns
optional feature to change DNS resolver. - Add
bytes()
method toreqwest::blocking::Response
. - Add
buffer()
method toreqwest::blocking::Body
. - Implement
From<http::Request>
forreqwest::Request
.
v0.10.2
- Add Brotli support, enabled with the optional
brotli
feature. ✨ - Add
Client::use_preconfigured_tls(tls_connector)
allowing manual configuration of TLS options. - Implement
Default
for blockingClient
,ClientBuilder
, andmultipart::Form
. - (wasm) Add
Response::error_for_status()
method. - (wasm) Add
Response::json()
method. - (wasm) Implement
Default
forClient
andClientBuilder
.
v0.10.1
- Add
socks
optional feature to support SOCKS5 proxies. - Add
RequestBuilder::timeout()
to configure a timeout for a single request, instead of using the client's timeout. - Add
ClientBuilder::connection_verbose()
option to enable verbose IO logs. - (wasm) Add
RequestBuilder::fetch_mode_no_cors()
option. - (wasm) Add
Response::url()
getter method.
v0.10.0
v0.10.0
-
Add
std::future::Future
support. -
Add
wasm32-unknown-unknown
support (with fewer features). -
Add ability to pass async
Response
as thebody
of anotherRequest
. -
Add
Body::as_bytes()
method. -
Add
Response::bytes_stream()
method to get body as animpl Stream
. -
Add
Request::try_clone()
method. -
Change default
Client
API to async. The previous blocking client API is avaialble atreqwest::blocking
. -
Change to no longer send a default
User-Agent
header. Add one viaClientBuilder::user_agent()
. -
Change to enable system/environment proxy detection by default.
-
Change
default-tls
feature to only includeClientBuilder
options that bothnative-tls
andrustls
support. -
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::Stream
support.
-
Change
Error
internal design, removing severalError::is_*
inspector methods. -
Change Redirect API:
- Renamed types to be part of the
redirect
module (for example,reqwest::RedirectPolicy
is nowreqwest::redirect::Policy
). - Removed
loop_detected
andtoo_many_redirect
methods fromredirect::Attempt
, replaced with a genericerror
method. - The default policy no longer specifically looks for redirect loops (but they should be caught by the maximum limit).
- Renamed types to be part of the
-
Fix checking
HTTP_PROXY
environment variable if it the environment is from a CGI script. -
Fix removal of username/password of parsed proxy URL.
-
Update
url
to v2.0. -
Update
hyper
to v0.13. -
Update
http
to v0.2.
v0.10.0-alpha.2
- Add
Request::try_clone()
method. - Add HTTP2 window size configuration to
ClientBuilder
. - Add
Body::as_bytes()
method. - Add
Response::bytes()
method for WASM target. - Add
RequestBuilder::body()
method for WASM target. - Change to enable system/environment proxy detection by default.
- Fix checking
HTTP_PROXY
environment variable if it the environment is from a CGI script. - Fix removal of username/password of parsed proxy URL.
- Fix pinning
async-compression
dependency to last alpha.
v0.10.0-alpha.1
- Add
std::future::Future
support. - Add
wasm32-unknown-unknown
support (with fewer features). - Add ability to pass async
Response
as thebody
of anotherRequest
. - Change default
Client
API to async. The previous blocking client API is avaialble atreqwest::blocking
. - 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.
- Change
futures::Stream
support to a disabled-by-defaultunstable-stream
feature. - Change
Error
internal design, removing severalError::is_*
inspector methods. - Update
url
to v2.0.
v0.9.21
- Add
executor
method toClientBuilder
. - Send
User-Agent
header inCONNECT
requests to proxies.