Sean McArthur
f78846b6f1
Add note about how to use tokio::main in examples ( #745 )
2019-12-17 12:56:36 -08:00
Sean McArthur
5356776834
refine async API
...
- Converted `Response::text` and `Response::json` to `async fn`
- Added `Response::bytes` async fn as a counterpat to `text`.
- Added `Response::chunk` async fn to stream chunks of the response body.
- Added `From<Response> for Body` to allow piping a response as a request body.
- Removed `Decoder` from public API
- Removed body accessor methods from `Response`
- Removed `Chunk` type, replaced with `bytes::Bytes`.
- Removed public `impl Stream for Body`.
2019-09-10 14:06:09 -07:00
Sean McArthur
87a09322d6
Make the async Client default ( #626 )
...
The previously default Client is moved to `reqwest::blocking`, while the
async client becomes the main API.
Closes #622
2019-09-09 17:20:51 -07:00
Sean McArthur
ba7b2a754e
refactor all to async/await ( #617 )
...
Co-authored-by: Danny Browning <danny.browning@protectwise.com >
Co-authored-by: Daniel Eades <danieleades@hotmail.com >
2019-09-06 17:22:56 -07:00
danieleades
cf8944a0f0
cargo fmt ( #604 )
...
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Sean McArthur
964d87ce57
Update trait object syntax to use 'dyn'
2019-06-03 13:15:09 -07:00
Guus
8ed9e60351
Correcting 404 on example/simple.rs ( #449 )
2019-01-28 10:14:59 -08:00
Sean McArthur
3424e91746
update and remove unnecessary dependencies
2018-08-15 16:54:41 -07:00
Yash Srivastav
c417d6dab8
Upgrade hyper to 0.12
...
Closes #304
2018-07-05 10:03:31 -07:00
Sean McArthur
af49be0ce6
update to log 0.4
2018-01-19 17:55:15 -08:00
Sean McArthur
f8fd5be16c
fix unknown lint error
2017-08-17 12:52:44 -07:00
Sean McArthur
c166e04a55
fix lint warnings on newer nightly
2017-08-17 10:52:22 -07:00
Sean McArthur
7bfa7adb49
deny warnings in examples
2017-08-02 17:45:49 -07:00
Sean McArthur
665b4fe718
upgrade hyper to v0.11
2017-06-21 09:47:21 -07: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
James Kominick
e9d5774365
update example error handling
...
- Add error-chain dev dependency
- Add error handling using `?` instead of `unwrap`
2017-05-21 16:15:46 -04:00
Sean McArthur
1259128d92
add native-tls and serde json support
2016-10-22 21:48:29 -07:00
Sean McArthur
15e59c1c6d
use current hyper for now
2016-10-16 10:26:04 -07:00
Sean McArthur
d78eff6918
improvements
2016-10-16 09:40:28 -07:00
Sean McArthur
9bfdcec052
init
2016-06-30 17:23:51 -07:00