JustFr33z
3b45c38c41
Update README license badge to actually link to license.( #1078 )
2020-11-11 06:28:26 -08:00
Federico Terzi
7595dcb3f7
Default HTTPS proxy protocol to HTTP if not explicitly specified otherwise ( #1082 )
...
Fix #1080
2020-11-11 06:26:44 -08:00
XyLyXyRR
4574019045
chore(docs): fix missing link for 'blocking'
2020-11-10 09:33:09 -08:00
Constantin Nickel
bf43bb608c
Update serde_urlencoded to 0.7
2020-11-06 08:24:45 -08:00
Ngo Iok Ui (Wu Yu Wei)
00fb43b650
Add tcp_keepalive option for ClientBuilder ( #1070 )
2020-10-29 08:23:01 -07:00
Patrick Lühne
6705b90a15
Fix typo in documentation ( #1056 )
...
This fixes a typo with multiple occurrences in the documentation and
rewraps the documentation comments at 80 characters.
2020-10-12 18:04:33 -07:00
Sebastian Dröge
d42d16c705
Update tokio-socks dependency to 0.3
2020-10-07 10:47:44 -07:00
Sebastian Dröge
5aa517b9b4
Update base64 dependency to 0.13
2020-10-07 10:47:44 -07:00
Snarpix
dbd887c262
Expose http1_writev config option to user ( #1040 )
2020-09-18 11:29:07 -07:00
Fabrice Desré
5031747e8e
Update webpki-roots to current version ( #1041 )
...
Simple bump from 0.19 to 0.20
2020-09-18 10:48:41 -07:00
dependabot[bot]
50006e7734
Bump http-proxy from 1.18.0 to 1.18.1 in /examples/wasm_github_fetch ( #1033 )
...
Bumps [http-proxy](https://github.com/http-party/node-http-proxy ) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases )
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-10 10:25:57 -07:00
shuo
e06e19868f
Add is_connect on error ( #1023 )
...
* error: add is_connect helper function
* test: ensure request_timeout is not connect_timeout
* fmt
* skip err is_connect if target_arch is wasm. rerun checks
Co-authored-by: lishuo <lishuo.03@bytedance.com >
Co-authored-by: Sean McArthur <sean@seanmonstar.com >
2020-09-02 18:07:13 -07:00
Youngsuk Kim
f012163333
typo fix in docs ( #1024 )
2020-09-01 14:06:23 -07:00
Jason van den Hurk
53268f2443
Introduce build method on WASM RequestBuilder for compatibility with async_impl ( #1019 )
2020-08-28 10:12:58 -07:00
Sean McArthur
7ef8e94250
v0.10.8
2020-08-25 09:28:48 -07:00
Zac Pullar-Strecker
db24d54097
Add must_use to ClientBuilder & RequestBuilder ( #1011 )
2020-08-21 08:58:53 -07:00
Jonas Platte
d42385e7f2
wasm: Omit request body if it's empty ( #1012 )
...
This should allow creating GET and HEAD requests from http::Request
2020-08-20 15:42:48 -07:00
fuyu
9e23103371
Fix detection of system proxy from Windows registry ( #1005 )
2020-08-19 11:38:21 -07:00
Scott Dupree
512fb97ffc
Use proxy's DNS in TOR example ( #1003 )
...
Fix #899
2020-08-17 11:02:09 -07:00
Scott Dupree
7a5c5ed600
Remove non-working example. Postman-echo does not return CORS headers. After a quick search I did not find a test echo server which returned CORS headers. ( #1002 )
...
I have rolled an example header into the other WASM example
2020-08-17 11:00:39 -07:00
Paolo Barbolini
cff487ff58
docsrs: build wasm32-unknown-unknown docs ( #998 )
2020-08-11 08:14:04 -07:00
Jonas Platte
dd8441fd23
wasm: impl TryFrom<HttpRequest<T>> for Request ( #997 )
2020-08-08 15:29:22 -07:00
SnejUgal
ecc863fdac
Do not assume that window exists in WASM ( #990 )
2020-08-06 15:09:31 -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
Jason van den Hurk
77d7e452e1
Make execute method on WASM client for compatibility with async_impl ( #989 )
...
The async_impl of reqwest has a `execute` impl on Client which is used
to execute a request and return a Result Future. When converting a crate
from async to wasm this method is missing, requiring forking and
rewriting the crate. By introducing this method less errors will be
introduced when trying to compile to wasm
2020-08-06 10:37:05 -07:00
dependabot[bot]
edc9e244cb
Bump elliptic from 6.5.1 to 6.5.3 in /examples/wasm_header ( #987 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.1...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 07:46:12 -07:00
dependabot[bot]
cea712f8cd
Bump elliptic from 6.5.1 to 6.5.3 in /examples/wasm_github_fetch ( #986 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.1...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 07:46:00 -07: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
c78aa50d4c
v0.10.7
2020-07-24 07:13:27 -07:00
dependabot[bot]
4a8998241a
Bump lodash from 4.17.15 to 4.17.19 in /examples/wasm_header ( #975 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 07:06:32 -07:00
dependabot[bot]
9df2bc6e61
Bump lodash from 4.17.15 to 4.17.19 in /examples/wasm_github_fetch ( #974 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 07:06:18 -07:00
Michal 'vorner' Vaner
69288606bc
Allow conversion from async client builder to blocking one ( #978 )
...
The builders have mostly the same options and the blocking one is just a
wrapper around the async one. The possible conversion makes it easier to
support creating both kinds from configuration file, reducing some code
duplication.
2020-07-20 10:27:14 -07:00
Enno Boland
a800202384
Add multipart for WASM ( #966 )
2020-07-08 13:10:23 -07:00
Enno Boland
af9fc5c9d8
Implement Request::bearer_auth for wasm32
2020-07-06 15:00:54 -07:00
Alex Gaynor
1a2c10256a
deps(chore): update to the latest rustls ( #969 )
2020-07-06 09:01:46 -07:00
Fabian Franz
7fd6b44cde
Issue #956 : Take the cookie store write lock only when necessary ( #960 )
2020-06-26 12:27:23 -07:00
Paolo Barbolini
f2e8dd2477
Update cookie crates ( #946 )
2020-06-24 09:04:21 -07:00
David Pedersen
1c680005c2
Add blocking::Response::headers_mut ( #958 )
2020-06-24 07:19:15 -07:00
alianse777
71386d8734
Implement form() and query() for RequestBuilder [WASM] ( #947 )
2020-06-15 07:28:51 -07:00
Tom Hacohen
668e89b78a
Error: add functions to check more error types. ( #945 )
...
There are functions to check if the error is from an array of different
reasons, but there were no functions to check if the failure was due to
the rest of the possible error reasons. This commit adds though.
Fixes #942
2020-06-13 07:52:02 -07:00
Taylor Thomas
6914091582
feat(proxy): Adds NO_PROXY environment variable support ( #877 )
...
* feat(proxy): Adds NO_PROXY environment variable support
Adds support for loading from the `NO_PROXY` or `no_proxy` environment
variables. This should make reqwest support the system proxy settings.
Please note that I brought in one additional dependency in order to
handle CIDR blocks in the no proxy settings.
Closes #705
2020-06-08 15:32:56 -07:00
dependabot[bot]
da899e27e1
Bump websocket-extensions from 0.1.3 to 0.1.4 in /examples/wasm_header ( #940 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 13:22:44 -07:00
dependabot[bot]
ec2f15ffdb
Bump websocket-extensions in /examples/wasm_github_fetch ( #939 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 13:22:23 -07:00
Sean McArthur
bcb35e9498
v0.10.6
2020-05-29 10:49:54 -07:00
Jacob Hoffman-Andrews
eef504631b
Reject non-http, non-https URLs. ( #921 )
...
Normally hyper is in charge of rejecting non-http URLs, but because
reqwest supports both http and https URLs, it calls enforce_http(false),
disabling hyper's checks.
This adds back a check in reqwest itself, plus a test.
There may still need to be an additional check in connect.rs.
2020-05-29 10:29:40 -07:00
Bryan Burgers
fd253cf1ab
Remove webpki-tokio from hyper-rustls ( #935 )
...
`reqwest` doesn't actually care how hyper-rustls gets its root certs. By
not specifying any feature for hyper-rustls, `reqwest` is able to work
with `rusoto_core` and others better.
2020-05-29 09:13:03 -07:00
Sean McArthur
6c7190bb4f
v0.10.5
2020-05-28 21:23:40 +00:00
Damien Cuenot
248a9765b3
Backport Sentivite headers to blocking implementation ( #931 )
2020-05-28 14:21:59 -07:00
Damien Cuenot
d879d6f6c2
Define authorization headers as sensitive header ( #916 )
2020-05-22 14:39:55 -07:00
Patrick Lühne
ecf1df572c
Rename option to “pool_max_idle_per_host” ( #917 )
...
reqwest exposes the “pool_max_idle_per_host” option of hyper’s client
builder. This option used to be called “max_idle_per_host” in the hyper
crate, but it has recently been renamed [1].
This patch renames the reqwest representation of this option to make it
consistent with its name in the hyper crate again.
[1] https://github.com/hyperium/hyper/pull/2142
2020-05-22 08:05:44 -07:00