John Gallagher
43f2ff083c
Add error to JsValue conversion and example ( #691 )
2019-10-30 13:30:32 -07:00
Moses Gathuku
57300edbc4
use README.md traits to use dynamic library ( #695 )
2019-10-30 12:40:49 -07:00
Alex Gaynor
3090a68d53
dependencies: upgrade base64 to latest version ( #692 )
2019-10-25 15:42:29 -07:00
Artem Vorotnikov
cfc312f8dd
Remove remnants of old typed headers ( #690 )
2019-10-23 12:18:06 -07:00
Paolo Barbolini
dd65fc7c3a
wasm: translate over response headers ( #689 )
...
Closes #656
2019-10-21 13:55:42 -07:00
Sean McArthur
40d4d05e4e
Remove username and password when parsing proxies ( #686 )
2019-10-17 17:27:25 -07:00
Sean McArthur
31e64e9f28
prevent using HTTP_PROXY if detected inside CGI ( #684 )
2019-10-17 16:21:39 -07:00
Kyle Huey
6433db78b1
Add http2 window setters to ClientBuilder ( #659 )
2019-10-17 15:01:37 -07:00
Sean McArthur
7739e03123
Enable "system" proxies by default ( #683 )
...
If no proxies are configured for a client, the environment (system) will
be inspected automatically to set up proxies.
Configuring a `Proxy` on a client or calling `no_proxy` will disable the
use of the automatic system proxy.
Closes #403
2019-10-17 13:32:00 -07:00
Sean McArthur
8583dd2b4c
Replace uuid dependency with tiny internal RNG ( #679 )
2019-10-15 14:54:26 -07:00
Alex Gaynor
09a541cff5
chore(deps): bump cookie_store dependency to the latest version ( #673 )
2019-10-14 11:26:02 -07:00
lzutao
5e5e6e9040
chore(deps): bump wasm-bindgen-futures ( #675 )
2019-10-14 11:25:17 -07:00
lzutao
a9dd94a99f
doc: make encoding_rs link clickable ( #674 )
2019-10-14 11:24:12 -07:00
Sean McArthur
6b5726aaa8
Improve fmt::Debug of Client and ClientBuilder
2019-10-09 13:46:39 -07:00
Sean McArthur
75ee4646ac
v0.10.0-alpha.1
2019-10-08 14:00:20 -07:00
Sean McArthur
bb3d672cd8
re-organize builder methods for docs purposes
2019-10-03 14:42:15 -07:00
Sean McArthur
7c1d0b9f13
remove deprecated dns_threads method
2019-10-03 13:51:02 -07:00
Sean McArthur
5b55aee1a9
Send user-agent in proxy tunnel requests
2019-10-03 10:34:51 -07: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
8e1a29ce1b
Update CI to run on rust beta
2019-09-27 13:26:29 -07:00
Constantin Nickel
24394364eb
Make json an optional feature (default off)
2019-09-27 12:27:23 -07:00
Constantin Nickel
a787fc1b38
Prune the tokio dependencies
2019-09-27 11:53:15 -07:00
Sean McArthur
c238a8b6b2
Remove pinned nightly toolchain
2019-09-26 10:13:20 -07:00
Sean McArthur
932defd879
Introduce unstable, incomplete WASM support
2019-09-26 10:01:08 -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
f4100e4148
Rewrite tests with a hyper server instead of raw TCP
...
This makes the tests much less brittle, by not depending on the exact
order of the HTTP headers, nor always requiring to check for every
single header.
2019-09-23 14:06:01 -07:00
nickelc
3cf8ede960
Make futures-channel dependency of blocking API ( #644 )
2019-09-19 09:03:39 -07:00
Sean McArthur
7e3c1bc461
Make the blocking API an optional feature (default off)
2019-09-18 12:39:02 -07:00
Sean McArthur
0a87d3d7da
Make cookies an optional feature (default off)
2019-09-17 16:50:54 -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
6b5be07158
Sync async/blocking ClientBuilder::gzip doc comment
2019-09-17 09:48:26 -07:00
SOFe
23e8a4d58e
Fixed incorrect description of ClientBuilder::gzip
...
"inflate" actually means decompress in the context of DEFLATE. "deflate" reduces the size of something, i.e. compression, and inflate is the opposite, i.e. decompression.
2019-09-13 11:24:23 -07:00
Constantin Nickel
b1a90eb402
Prune the futures dependencies
2019-09-12 07:52:31 -07:00
Sean McArthur
5a337ba739
Pin to a nightly rustc
2019-09-11 17:28:41 -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
5fb04356fc
Re-enable rustls feature ( #625 )
2019-09-09 12:45:45 -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
Lucas
d7fcd8ac2e
Fix some multipart doc links ( #612 )
2019-09-05 11:48:39 -07:00
Lucas
80c4294b74
documented socks proxy ( #609 )
2019-09-05 09:37:21 -07:00
Nikhil Benesch
f60456c8e3
Upgrade to url v2.0 ( #583 )
2019-09-04 18:27:20 -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
Luca Bruno
8027a2894a
tests: add more badssl tests for rustls
2019-08-20 14:05:34 -07:00
Luca Bruno
3033f11639
cargo: update to rustls 0.16
2019-08-20 14:05:34 -07:00
Daniel Eades
4bb4149b63
remove unnecessary double-colons
2019-08-16 12:59:55 -07:00
Daniel Eades
06353fbb1a
remove deprecated 'try!' macro
2019-08-16 12:59:55 -07:00
Daniel Eades
e45d77584b
repair a dodgy find and replace
2019-08-16 12:59:55 -07:00