Commit Graph

189 Commits

Author SHA1 Message Date
Thomas Smith
f11e958433 Add support for custom DNS resolution (#1653)
Closes #1125
2022-11-02 09:27:07 -04:00
Sean McArthur
a0a7db0113 v0.11.12 2022-09-20 11:14:51 -07:00
Luqman Aden
6ceb23958c Export Upgraded type. (#1618) 2022-09-07 23:37:21 +00:00
Kaede Hoshikawa
74e70627be Migrate to once_cell. (#1565) 2022-07-18 16:16:59 -07:00
Sean McArthur
5397d2cf8e v0.11.11 2022-06-13 13:52:17 -07:00
Sean McArthur
798df70fb0 v0.11.10 2022-03-14 11:39:43 -07:00
Sean McArthur
0fc1652975 v0.11.9 2022-01-10 15:08:27 -08:00
Sean McArthur
d4986e5583 v0.11.8 2021-12-20 12:45:05 -08:00
Sean McArthur
17890f8c2f v0.11.7 2021-11-30 10:08:39 -08:00
Sean McArthur
59bc9a9323 v0.11.6 2021-10-18 15:57:30 -07:00
Fredrik Enestad
d35c311e6d Update async body doc (#1357)
Remove File from examples of what .body() accept
2021-10-18 16:54:38 +00:00
Sean McArthur
5cc1eff23b v0.11.5 2021-10-07 12:16:10 -07:00
Jonas Platte
1be9c34f01 Make ResponseBuilderExt not target-dependent 2021-08-26 13:42:46 -07:00
Jan Verbeek
66c1b48167 Add options for specifying the TLS version (#1315) 2021-08-12 09:41:32 -07:00
Sean McArthur
f5fe17876a v0.11.4 2021-06-21 14:58:56 -07:00
Mohamed Daahir
b48cb4a5aa Add native-tls-alpn feature (#1283) 2021-06-09 17:05:29 -07:00
Mohamed Daahir
77ee0df7c5 Support Deflate decoding (#1250) 2021-04-22 10:35:29 -07:00
Sean McArthur
7afade446c v0.11.3 2021-04-12 15:50:10 -07:00
Sean McArthur
80999a8963 v0.11.2 2021-03-09 11:05:35 -08:00
Sean McArthur
8689aa47e0 v0.11.1 2021-02-18 10:41:02 -08:00
nickelc
c27cd06a11 Use doc_cfg to show feature requirements (#1134)
* Use `doc_cfg` to show feature requirements

* Apply suggestions from code review
2021-02-17 16:48:08 -08:00
Sean McArthur
bd9ff9f371 v0.11.0 2021-01-05 10:19:00 -08:00
nickelc
afed48cafd Make multipart an optional feature (default off) (#1128) 2021-01-04 13:20:17 -08:00
Sean McArthur
5099192b92 v0.10.10 2020-12-14 14:37:37 -08:00
Sean McArthur
b1d498ffa8 v0.10.9 2020-11-19 16:04:32 -08:00
est31
23aaa0b60e Add a rustls-tls-native-roots feature
Adds an optional cargo feature to load certificates
from the OS native certificate store.
2020-11-19 13:13:36 -08:00
est31
3ea9f92f24 Add rustls-tls-manual-roots feature to allow callers to specify roots
Now, callers have more control over the set of roots.

Note that, due to cargo unification, other dependencies in the
dependency tree might enable rustls-tls-webpki-roots
or rustls-tls.
This will affect connections initiated by code that explicitly
enabled rustls-tls-manual-roots.

So for now, the choice is done once per entire cargo
dependency graph. If people want more precise control
over things, they can add methods that allow controlling
this on a per-connection level. Even if such methods
are available, the *-manual-roots feature will still be
helpful with eliminating the webpki-roots dependency
for those cargo graphs where there is no unification.
2020-11-19 13:13:36 -08:00
XyLyXyRR
4574019045 chore(docs): fix missing link for 'blocking' 2020-11-10 09:33:09 -08:00
Sean McArthur
7ef8e94250 v0.10.8 2020-08-25 09:28:48 -07:00
Jason van den Hurk
83fa93ccaf Make headers method on WASM client for compatibility with async_impl (#991)
The replace_headers method had to be moved since the async_impl module
is not compiled while compiling to wasm. This caused the replace_headers
method to be unavailable. fast_random had to be excluded from the wasm
build to prevent dead code warnings in the wasm target.
2020-08-06 15:07:43 -07:00
Sean McArthur
c78aa50d4c v0.10.7 2020-07-24 07:13:27 -07:00
Enno Boland
a800202384 Add multipart for WASM (#966) 2020-07-08 13:10:23 -07:00
Sean McArthur
bcb35e9498 v0.10.6 2020-05-29 10:49:54 -07:00
Sean McArthur
6c7190bb4f v0.10.5 2020-05-28 21:23:40 +00:00
Sean McArthur
ead2822321 v0.10.4 2020-03-03 17:12:17 -08:00
Sean McArthur
2e983694f6 Re-enable trust-dns optional feature (#787) 2020-02-27 12:57:13 -08:00
Sean McArthur
53c5aaa259 v0.10.3 2020-02-26 16:48:45 -08:00
Sean McArthur
9bb455d125 v0.10.2 2020-02-21 12:42:51 -08:00
EnokMan
f831d62da0 Brotli support (#791) 2020-02-19 12:49:11 -08:00
WindSoilder
4c1290fc2a Document socks proxy in lib. (#793) 2020-01-20 14:42:26 -08:00
Sean McArthur
d662c850a9 v0.10.1 2020-01-09 13:50:56 -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
Sean McArthur
35c6ddd00b v0.10.0 2019-12-30 10:25:44 -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
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
7631c0390e Rename 'unstable-stream' feature to 'stream' (#733) 2019-12-10 16:55:53 -08:00
Sean McArthur
43e15e2094 v0.10.0-alpha.2 2019-11-12 10:14:39 -08:00