Releases: seanmonstar/reqwest
Releases · seanmonstar/reqwest
v0.6.0
Features
- Upgraded to serde
1.0 - Added a
urlmethod toError, which returns a possible associatedUrlthat occurred with this error. - Added
req.basic_auth(user, optional_pass)method to ease usingBasicauthentication.
Breaking Changes
- The publicly exposed peer dependency serde was upgraded. It is now
serde@1.0. Mismatched version will give a compiler error that a serde trait is not implemented. Erroris no longer anenum, but an opaque struct. Details about it can be checked withstd::error::Error::cause(), and methods onreqwest::Errorincludeis_http(),is_serialization(), andis_redirect().RedirectPolicy::customreceives different arguments, and returns different values. See the docs for an example.
Thanks
Thanks to these contributors who helped get this stuff into this release:
v0.5.2
v0.5.1
Features
- add
Cloneimplementation forClient
v0.5.0
Features
- Automatic GZIP decoding: By default,
Clientwill try to decode any responses that appear to be gzip encoded (based on headers). This can be disabled viaclient.gzip(false)(ab5e477) - Specify a timeout for requests using
client.timeout(duration). (ec049fe) - Request bodies with a known length can be constructed with
Body::sized()(82f1877) - Add
Client.put,Client.patch, andClient.deleteconvenience methods (c37b8aa, 4d6582d, a3983f3) - Add
reqwest::mime(0615c6d)
Breaking Changes
The only breaking change is a behavioral one, all programs should still compile without modification. The automatic GZIP decoding could interfere in cases where a user was expecting the GZIP bytes, either to save to a file or decode themselves. To restore this functionality, set client.gzip(false).
Thanks
All features were from these contributors, so thanks!
v0.4.0
- updated to serde 0.9
v0.3.0
- updated to hyper 0.10
v0.2.0
Features
- add
Response.json()method (2d10ecc) - add
RedirectPolicy(e92b3e8) - set an
Accept: */*header by default if noAcceptheader is set (559ae80) - add support for 307 and 308 redirects (a54447c)
- implement
SyncforClient, andSendforRequestBuilderandResponse(d18a53b) - implement
SendforError(20b1610) - implement
std::fmt::Debugfor all public types (d624b0e)
Breaking Changes
Error::Serializenow has aBox<StdError + Send + Sync>instead ofBox<StdError>RequestBuilderno longer has an associated lifetime (wasRequestBuilder<'a>)