6.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			6.6 KiB
		
	
	
	
	
	
	
	
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
Fixes
- fix a panic when redirecting and a Authorization<Basic>header was added (cf246d072b)
- fix redirects so that a GET will follow 307/308 responses (2d11a4bd71)
v0.7.1
Fixes
- 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_refreturns- Error + 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 returns- Error::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 a- StatusCodeinstead of- &StatusCode.
v0.6.2
Features
- adds Client::referer(bool)option to disable setting theRefererheader during redirects (bafcd7ae6f)
Fixes
- fixes filtering sensitive headers during redirects (https://github.com/seanmonstar/reqwest/issues/10)
- fixes sending of the Referer to an HTTP site when coming from HTTPS, and removes username and fragment explicitly (d8696045b4)
- documentation updates
v0.6.1
Features
- adds Error::get_refto get the underlying error that may have occurred. Includes a'staticbounds, which allows for downcasting (as opposed toError::cause).
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 an- enum, but an opaque struct. Details about it can be checked with- std::error::Error::cause(), and methods on- reqwest::Errorinclude- is_http(),- is_serialization(), and- is_redirect().
- RedirectPolicy::customreceives different arguments, and returns different values. See the docs for an example.
v0.5.2
Fixes
- fix panic with Gzip decoder on an empty body (https://github.com/seanmonstar/reqwest/issues/82)
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)(ab5e477a12)
- Specify a timeout for requests using client.timeout(duration). (ec049fefba)
- Request bodies with a known length can be constructed with Body::sized()(82f1877d4b)
- Add Client.put,Client.patch, andClient.deleteconvenience methods (c37b8aa033,4d6582d22b,a3983f3122)
- Add reqwest::mime(0615c6d65e)
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).
v0.4.0
- updated to serde 0.9
v0.3.0
- updated to hyper 0.10
v0.2.0
Features
- add Response.json()method (2d10ecc99e)
- add RedirectPolicy(e92b3e862a)
- set an Accept: */*header by default if noAcceptheader is set (559ae8011a)
- add support for 307 and 308 redirects (a54447c1d9)
- implement SyncforClient, andSendforRequestBuilderandResponse(d18a53b3fc)
- implement SendforError(20b161096e)
- implement std::fmt::Debugfor all public types (d624b0ef29)
Breaking Changes
- Error::Serializenow has a- Box<StdError + Send + Sync>instead of- Box<StdError>
- RequestBuilderno longer has an associated lifetime (was- RequestBuilder<'a>)
v0.1.0
Initial release: http://seanmonstar.com/post/153221119046/introducing-reqwest