Paolo Barbolini
7214e123c4
Implement Default for Client and ClientBuilder on the wasm32 target ( #813 )
2020-02-20 08:44:19 -08:00
Jack Moffitt
5a2cf97872
Implement Default for Client, ClientBuilder, and Form ( #811 )
2020-02-19 22:02:49 -08:00
EnokMan
f831d62da0
Brotli support ( #791 )
2020-02-19 12:49:11 -08:00
Luca Bruno
7622c75064
blocking: opt-out CPUs auto-detection in debug mode ( #807 )
...
This tweaks the tokio runtime checker (only used in debug mode) in
order to use a single thread.
Performing the CPUs auto-detection step on each check adds significant
syscall-tracing noise and runtime latency. This completely skips it.
2020-02-17 10:05:22 -08:00
Héctor Ramón
f6ff7f4364
Implement Response::json for wasm32 target ( #802 )
2020-02-06 10:39:57 -08:00
Sean McArthur
04980689ce
Newest rustfmt changes
2020-02-06 10:17:40 -08:00
WindSoilder
4c1290fc2a
Document socks proxy in lib. ( #793 )
2020-01-20 14:42:26 -08:00
Sean McArthur
76ca042faf
Only set nodelay for HTTPS if not already set ( #783 )
2020-01-13 14:26:55 -08:00
Sean McArthur
e31d5221fe
Refactor connect errors to not use io::Error ( #782 )
2020-01-13 13:29:14 -08:00
Sean McArthur
14908ad3f0
Improve debug logging ( #781 )
2020-01-13 12:24:38 -08:00
Paolo Barbolini
1478313756
wasm: add error_for_status to wasm response ( #779 )
...
Adds the error_for_status and error_for_status_ref functions
to wasm::Response
2020-01-09 17:06:56 -08:00
Sean McArthur
d662c850a9
v0.10.1
2020-01-09 13:50:56 -08:00
Paolo Barbolini
fd88e0c648
wasm: add url function to wasm response ( #777 )
...
Adds the url function to wasm::Response
2020-01-09 13:43:08 -08:00
Sean McArthur
50c33a932e
Add connection_verbose setting to log IO events ( #774 )
2020-01-09 13:42:01 -08:00
r-arias
20d50daa8b
re-add the "socks" feature (using tokio-socks) ( #769 )
...
The "socks" feature has been removed for a while now, the optional
dependency on the "socks" crate commented out.
The code for actually providing the socks feature was, however, still
mostly present, if a bit out of date.
This commit re-adds the socks feature using the tokio-socks (instead of
socks) crate.
Closes #620
2020-01-09 12:25:26 -08:00
rhysd
6004623784
Add RequestBuilder::fetch_mode_no_cors()
2020-01-08 11:47:47 -08:00
Konrad Gołuchowski
22fe6566ff
Provide request timeout for blocking API ( #764 )
2020-01-07 12:24:23 -08:00
kodieg
b159963f6c
Add request timeout ( #761 )
...
Closes #754
2020-01-03 11:25:04 -08:00
Sean McArthur
c0f717cf30
Enable blocking, cookies, and json features on Playground
2020-01-02 11:44:04 -08:00
Sean McArthur
e0a94286bf
Add dependencies notes to README examples
...
Closes #755
2020-01-02 11:34:01 -08:00
Sean McArthur
1f44638ec7
Add logs around blocking runtime shutdown
2020-01-02 11:03:22 -08:00
Sean McArthur
35c6ddd00b
v0.10.0
2019-12-30 10:25:44 -08:00
Sean McArthur
c88d3b7aa6
Remove disabled examples
2019-12-26 12:17:27 -08:00
Sean McArthur
09e7fe62e3
Don't set User-Agent header by default ( #751 )
2019-12-23 12:48:11 -08:00
Sean McArthur
47734f55f4
Replace futures-channel with tokio::sync in blocking client ( #748 )
2019-12-23 12:01:23 -08:00
Sean McArthur
0ab5df39cc
Add Response::bytes_stream() ( #750 )
...
This converts the `Response` into a `Stream` of `Bytes`.
Closes #734
2019-12-23 11:38:39 -08:00
Sean McArthur
24abf2fcbd
Separate default-tls and native-tls features ( #749 )
...
To allow for the default-tls to change to a different backend by
default, this adds a new `native-tls` optional feature. Any TLS feature
that was only available using native-tls now requires the `native-tls`
feature to be enabled.
2019-12-20 13:22:56 -08:00
Sean McArthur
18fd9a63b0
Re-enable rustls ( #747 )
2019-12-19 11:43:03 -08:00
Sean McArthur
f78846b6f1
Add note about how to use tokio::main in examples ( #745 )
2019-12-17 12:56:36 -08:00
Sean McArthur
c4c754c0fd
Remove a few unused public pieces from the cookie module ( #744 )
2019-12-17 11:49:51 -08:00
Sean McArthur
ce43f80d8b
Refactor Redirect API ( #741 )
...
Changed the redirect types to be from the `redirect` module:
- `reqwest::RedirectPolicy` is now `reqwest::redirect::Policy`
- `reqwest::RedirectAttempt` is now `reqwest::redirect::Attempt`
- `reqwest::RedirectAction` is now `reqwest::redirect::Action`
Changed behavior of default policy to no longer check for redirect loops
(loops should still be caught eventually by the maximum limit).
Removed the `too_many_redirects` and `loop_detected` methods from
`Action`.
Added `error` to `Action` that can be passed any error type.
Closes #717
2019-12-16 15:57:09 -08:00
nickelc
382f1c0e6a
Export the ResponseBuilderExt trait again ( #738 )
2019-12-16 11:40:51 -08:00
Sean McArthur
5d639ecbde
docs typo in proxies note
2019-12-12 13:22:24 -08:00
Sean McArthur
a57afd50ea
Reduce futures optional features ( #737 )
2019-12-12 12:34:44 -08:00
Sean McArthur
be52c4d558
support url with authority ( #736 )
2019-12-11 13:42:45 -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
Sean McArthur
db2de90e42
Update README badges
2019-12-10 12:30:29 -08:00
Sean McArthur
3a3a7c512d
remove travis and appveyor CI files ( #732 )
2019-12-10 12:24:25 -08:00
nickelc
e6b286977e
Add GitHub workflow for CI ( #728 )
2019-12-10 11:48:49 -08:00
Rodolfo P A
80ba8cc150
Implement Default for Client, ClientBuilder and Form ( #712 )
2019-11-21 11:52:17 -08:00
Nathan West
3a24cc1d4b
Reimplemented RequestBuilder::basic_auth to use Base64Encoder ( #713 )
2019-11-19 10:45:14 -08:00
Sean McArthur
960e33cd48
Re-enable testing on stable in CI
2019-11-12 13:21:59 -08:00
Sean McArthur
43e15e2094
v0.10.0-alpha.2
2019-11-12 10:14:39 -08:00
Lucas
3b23593262
Add as_bytes method to Body ( #708 )
2019-11-11 13:12:22 -08:00
Matthijs Brobbel
1ce6731f2d
Fix a link in doc ( #706 )
2019-11-07 16:06:04 -08:00
nickelc
bab6001e0b
Pin async-compression to the last alpha ( #703 )
2019-11-07 12:04:01 -08:00
Daniel Lee
8a6bdb7a82
Update documentation to show usage of system proxies ( #702 )
...
Add several lines that explain the usage of proxies in the current
version. Introduce the familiar HTTP(S)_PROXY syntax so often seen
in http(s) clients.
Closes #685
2019-11-07 11:42:48 -08:00
tobdob
3a50ed11f8
Implement try_clone for async requests ( #698 )
...
Fixes #533
2019-11-04 18:14:40 -08:00
John Gallagher
f6f81f9cc1
wasm: Add request body in the form of Bytes ( #696 )
...
* Add body bytes
* Add example and header creation code
2019-11-04 09:17:05 -08:00