Releases: seanmonstar/reqwest
v0.8.3
Features
- Upgrades internal log crate usage to v0.4
v0.8.2
Fixes
- Enable hyper's
no_protoconfig, fixing several bugs in hyper.
v0.8.1
Features
- Add
ClientBuilder::default_headersto set headers used for every request. - Add
async::ClientBuilder::dns_threadsto set number of threads use for DNS. - Add
Response::textas shortcut to read the full body into aString. - Add
Response::copy_toas shortcut forstd::io::copy.
Thanks!
v0.8.0
Features
- Client TLS Certificates (#43)
- GZIP decoding has been added to the async Client (#161)
ClientBuilderandRequestBuilderhold their errors till consumed (#189)async::Response::body()now returns a reference to the body instead of consuming theResponse- A default timeout for
reqwest::Clientis used set to 30 seconds (#181) - Multipart support! (#4)
Breaking Changes
-
Client::newno longer returns aResult.To handle any panics that come from
Client::new, the builder can be used instead. -
ClientBuilderandRequestBuilderhold their errors till consumed (#189).This means a bunch of
?will be going away, but means using the builders will be far easier now. Any error encountered inside the builders will now be returned when the builder is consumed.To get errors back immediately, the
Requesttype can be used directly, by building pieces separately and calling setters. -
async::Response::body()now returns a reference to the body instead of consuming theResponse. -
A default timeout for
reqwest::Clientis used set to 30 seconds (#181)For uses where the timeout is too short, it can be changed on the
ClientBuilder, using thetimeoutmethod. PassingNonewill disable the timeout, reverting to the pre-0.8 behavior.
v0.7.3
Features
Proxy::custom(fn)to allow dynamically picking a proxy URL
Fixes
- fix occasional panic when program exits while
ClientorResponseare dropping.
v0.7.2
v0.7.1
- fix remove accidental
printlns in the sending of a body - some documentation improvements
v0.7.0
Features
- Proxy support (#30)
- Self-signed TLS certificates (#97)
- Disabling TLS hostname validation
⚠️ (#89) - A
Requesttype that can be used instead of theRequestBuilder(#85) - Add
Response::error_for_status()to easily convert 400 and 500 status responses into anError(#98) - Upgrade hyper to 0.11
- Synchronous
Clientremains. - Timeouts now affect DNS and socket connection.
- Pool much better at evicting sockets when they die.
- An
unstableCargo feature to enablereqwest::unstable::async.
- Synchronous
- A huge docs improvement!
Fixes
- Publicly exports
RedirectActionandRedirectAttempt Error::get_refreturnsError + Send + Sync
Breaking Changes
- hyper has been upgraded to 0.11, so
header,StatusCode, andMethodhave breaking changes. mimehas been ugpraded to 0.3, with a very different API.- All configuration methods have been removed from the
Client, and moved to theClientBuilder. - The
HttpVersiontype was completely removed. Error::cause()now returnsError::get_ref().cause().- All methods on
Clientthat start aRequestBuildernow return aResultimmediately, instead of delaying the URL parse error for later. - The
RequestBuildermethods all take&mut self, instead of moving the builder, and return&mut Self. (This shouldn't actually affect most people who are building a request in a single chain.) Response::status()returns aStatusCodeinstead of&StatusCode.
Thanks 🎉
v0.6.2
- adds
Client::referer(bool)option to disable setting theRefererheader during redirects (bafcd7a) - fixes filtering sensitive headers during redirects (#10)
- fixes sending of the Referer to an HTTP site when coming from HTTPS, and removes username and fragment explicitly (d869604)
- documentation updates
Thanks
v0.6.1
- adds
Error::get_refto get the underlying error that may have occurred. Includes a'staticbounds, which allows for downcasting (as opposed toError::cause).