Taiki Endo
2dec3b725f
Remove pin-related unsafe code
2020-11-13 15:12:06 -08:00
Takayuki Maeda
1e6957a4ac
Fix clippy warnings ( #981 )
...
* refactor: fix clippy warnings
* refactor: fix redundant_closure
* refactor: fix collapsible if
* refactor: remove unnecessary_unwrap
2020-07-27 09:02:47 -07:00
Sean McArthur
603d498d2c
De-duplicate Body::poll_next and poll_data
2020-03-03 16:34:36 -08:00
Sean McArthur
7631c0390e
Rename 'unstable-stream' feature to 'stream' ( #733 )
2019-12-10 16:55:53 -08:00
Gleb Pomykalov
0f32c4a01a
Update to hyper 0.13
2019-12-10 16:24:05 -08:00
Lucas
3b23593262
Add as_bytes method to Body ( #708 )
2019-11-11 13:12:22 -08:00
tobdob
3a50ed11f8
Implement try_clone for async requests ( #698 )
...
Fixes #533
2019-11-04 18:14:40 -08:00
Sean McArthur
cba1e4e82e
Update tokio and hyper alphas
2019-10-01 14:26:42 -07:00
Sean McArthur
ebe57e10a3
Put Stream APIs behind unstable-stream feature
2019-09-27 17:00:15 -07:00
Sean McArthur
6413a4349e
Update tokio and hyper alphas
2019-09-25 14:19:37 -07:00
Sean McArthur
f71227d968
Make gzip an optional feature (default off)
2019-09-23 15:46:25 -07:00
Sean McArthur
53495e1526
Redesign Error type
...
- The `Error`'s kind is a now a set of variants depending on the context
of when an error could occur.
- If another error was the cause, it is now always the `source`.
Along with the `is_*` methods, this should help in understanding *when*
a certain error occurred. For example, an error setting the TLS
certificates will return a builder error, with the TLS error as the
source. This should help differentiate from a TLS error that happens
when connecting to a server.
It also makes the internal code less dependent on all the exact
dependencies that can be enabled or disabled.
2019-09-17 14:23:22 -07:00
Constantin Nickel
b1a90eb402
Prune the futures dependencies
2019-09-12 07:52:31 -07: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
Bas De Bue
81e0f1ff2a
Change Part::stream to reqwest::r#async::Chunk
2019-08-21 13:06:49 -07:00
Daniel Eades
4bb4149b63
remove unnecessary double-colons
2019-08-16 12:59:55 -07:00
Daniel Eades
3ba4b6eadf
port all optional features to 2018-edition
2019-08-16 12:59:55 -07:00
Daniel Eades
1452ca2bd1
remove unnecessary extern crate lines
2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e
cargo fix --edition
2019-08-16 12:59:55 -07:00
Dmitry Pankratov
e16aed5e3c
Added support for sending requests with streaming Body ( #545 )
2019-06-14 10:29:54 -07:00
Sean McArthur
f6ce085457
Propagate async timeout to response body ( #503 )
2019-04-22 15:24:35 -07:00
Kevin Wilson
4c21127f15
add async multipart request handling
2019-01-07 10:57:51 -08:00
Sean McArthur
e40cc33e52
fix unreachable code if polling async Body created from a single buffer
2018-10-05 13:03:00 -07:00
Yannick Heinrich
c4bf420021
Integrate helper functions inside corresponding structs
2018-10-05 11:19:52 -07:00
Yannick Heinrich
647f59756e
Add missing pub(crate) statements.
2018-10-05 11:19:52 -07:00
Sean McArthur
0735e586e5
reduce size of Response, async::Response, and async::Decoder
2018-09-19 15:23:01 -07:00
Sean McArthur
3fbda4fd49
remove unstable language and feature
2018-08-15 16:08:47 -07:00
Yash Srivastav
c417d6dab8
Upgrade hyper to 0.12
...
Closes #304
2018-07-05 10:03:31 -07:00
Kamal Marhubi
87f03e167c
async: Add conversions from static slices to Body
...
These useful conversions were missed in #159 .
refs #158
2017-09-21 01:18:05 -04:00
Ashley Mannix
2cb70c872a
make body return borrowed decoder
2017-08-19 18:02:20 +10:00
Ashley Mannix
e2fa97254e
support async gzip decoding
2017-08-18 19:43:06 +10:00
Ashley Mannix
381d10f80b
From impls for Body
2017-07-07 16:20:41 +10:00
Sean McArthur
665b4fe718
upgrade hyper to v0.11
2017-06-21 09:47:21 -07:00