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
Daniel Eades
86d9cbc66e
cargo fix --edition
2019-08-16 12:59:55 -07:00
messense
a3cd3633d8
Use dyn Trait feature in examples & tests ( #553 )
2019-06-25 21:16:20 -07:00
Dmitry Pankratov
e16aed5e3c
Added support for sending requests with streaming Body ( #545 )
2019-06-14 10:29:54 -07:00
Sean McArthur
964d87ce57
Update trait object syntax to use 'dyn'
2019-06-03 13:15:09 -07:00
nirasan
9f22f46e85
Clarify correct specification of dependency on serde ( #525 )
...
Closes #494
2019-05-16 10:46:00 -07:00
Guus
8ed9e60351
Correcting 404 on example/simple.rs ( #449 )
2019-01-28 10:14:59 -08:00
Josh Mcguigan
aa6b1f4184
Added async example which makes multiple requests ( #351 )
2018-09-20 14:07:33 -07:00
Vlad Frolov
276c3d6594
Added JSON examples
2018-09-19 12:48:46 -07:00
Sean McArthur
3424e91746
update and remove unnecessary dependencies
2018-08-15 16:54:41 -07:00
Sean McArthur
3fbda4fd49
remove unstable language and feature
2018-08-15 16:08:47 -07:00
Sean McArthur
c1c5f14b7c
fix unused result warning in async example
2018-07-05 15:06:09 -07:00
Sean McArthur
6c78e363e0
remote tokio-core dependency
2018-07-05 14:06:01 -07:00
Yash Srivastav
c417d6dab8
Upgrade hyper to 0.12
...
Closes #304
2018-07-05 10:03:31 -07:00
Oliver Schneider
f0b774960d
Allow unsized types in query, form and json
2018-02-01 14:44:39 +01:00
Sean McArthur
af49be0ce6
update to log 0.4
2018-01-19 17:55:15 -08:00
Sean McArthur
779f8080ef
change Builders to only error at the end
...
Closes #189
2017-08-31 18:10:45 -07:00
Ashley Mannix
2cb70c872a
make body return borrowed decoder
2017-08-19 18:02:20 +10: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
Laurent Arnoud
cc850a65cb
Add response json example
...
ref https://github.com/seanmonstar/reqwest/pull/19#issuecomment-261789621
2017-04-23 18:00:35 +02: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
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