Sean McArthur
e5753a5eb4
remove hyper::Error::Ssl
2017-06-28 11:09:40 -07:00
Tom Prince
855e6615eb
Add error_for_status.
...
This makes it it easy to turn error responses into error
results.
2017-06-22 11:03:39 -07:00
Sean McArthur
665b4fe718
upgrade hyper to v0.11
2017-06-21 09:47:21 -07:00
Sean McArthur
8633060eaf
error docs touchups
2017-06-11 11:03:15 -07:00
Andrew Gauger
c8d03dd8b9
Examples for Error Documentation ( #144 )
2017-06-11 09:55:12 -07:00
Sean McArthur
0759f43ecb
change error.cause() to return error.get_ref().cause()
...
Also note, this has a functional breaking change:
IO, URL, and TLS errors reported by hyper are promoted internally.
That means you shouldn't downcast `get_ref` to a `hyper::Error` to
look for those errors.
Closes #140
2017-06-09 17:49:10 -07:00
theduke
583fceb51f
Move try_ macro to error.rs.
...
Fixes #109 .
2017-06-07 18:07:22 -07:00
Tom Prince
83c71d4465
Hide internal conversions to reqwest::Error.
2017-06-01 14:10:59 -06:00
Tom Prince
0f37eb0ce0
Make Error::get_ref return a Send+Sync error.
2017-05-31 23:16:44 -06:00
Tom Prince
a36ed4a87a
Add a conversion from native_tls::Error.
2017-05-31 19:27:45 -06:00
Tom Prince
a2c24a4009
Some slightly less trivial rustfmt changes.
2017-05-31 14:50:32 -06:00
Tom Prince
4c60e6d35f
Really trivial rustfmt changes.
2017-05-31 14:50:32 -06:00
Corentin Henry
6cde2e538e
Fix build for nightly-2017-05-22
...
Compilation fails with nightly-2017-05-22:
```
error: unused macro definition
--> src/error.rs:188:1
|
188 | / macro_rules! try_ {
189 | | ($e:expr) => (
190 | | match $e {
191 | | Ok(v) => v,
... |
204 | | )
205 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
note: lint level defined here
--> src/lib.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
```
Removing the duplicate (and unused) `try_!` macro in error.rs fixes the
warning.
2017-05-23 17:11:01 -07:00
Sean McArthur
5a078cd1be
remove unintended export of private try_ macro
2017-05-18 10:57:10 -07:00
Sean McArthur
57359a6e2f
remove unintended export of private try_ macro
2017-05-18 09:22:00 -07:00
Sean McArthur
b1f40b776d
add Error::get_ref method with 'static bound
2017-05-12 22:03:24 -07:00
Sean McArthur
d514d4e6e8
redirect and error reform
...
- `Error` has been made an opaque struct.
- `RedirectPolicy` now makes use of `RedirectAttempt` and `RedirectAction`.
2017-05-08 11:38:48 -07:00
Sean McArthur
b5475f6903
tidy up some clippy warnings
2017-05-05 14:13:54 -07:00
Sean McArthur
e92b3e862a
add support for defining RedirectPolicy for a Client
2016-12-10 11:36:22 -08:00
Sean McArthur
20b161096e
update Error to implement Send
...
BREAKING CHANGE: This does change the type of `Error::Serialize`, but
should only possibly affect those constructing `Error`, not consuming it.
2016-11-21 14:43:28 -08:00
Garrett Squire
2d10ecc99e
add the ability to deserialize JSON from a response body directly
2016-11-20 13:11:11 -08:00
Sean McArthur
06f94f4744
add form() method
2016-11-08 13:33:08 -08:00
Sean McArthur
5479d9e8b8
handle redirects
2016-10-25 12:26:01 -07:00
Sean McArthur
1259128d92
add native-tls and serde json support
2016-10-22 21:48:29 -07:00
Sean McArthur
d78eff6918
improvements
2016-10-16 09:40:28 -07:00