Elliott Clarke
d3ffb27bdb
Add URL API to Error
...
Adds `without_url`, `with_url`, and `url_mut` to `Error`.
Closes #297
2022-01-27 10:41:37 -08:00
nikstur
8400d8d740
Fixed links in blocking::multipart that pointed to async version instead of blocking
2022-01-24 10:55:41 -08:00
Sean McArthur
0fc1652975
v0.11.9
2022-01-10 15:08:27 -08:00
Josep Mengual
56ad99bebb
Add HTTP/0.9 responses support
2022-01-07 11:49:21 -08:00
Sean McArthur
7388b676df
Examples: allow passing URL via CLI
2022-01-07 11:22:13 -08:00
Sean McArthur
a03ca5012d
Fix HTTP/2: retry requests rejected by a graceful shutdown
2022-01-07 11:04:03 -08:00
Victor Saase
eb8e9d52c5
do not accept empty or whitespace proxy address ( #1423 )
...
Closes #1422
2022-01-06 10:49:40 -08:00
Sean McArthur
d4986e5583
v0.11.8
2021-12-20 12:45:05 -08:00
ComplexSpaces
baffb9c004
Update to webpki-roots 0.22 ( #1396 )
2021-12-03 11:34:49 -08:00
Sean McArthur
17890f8c2f
v0.11.7
2021-11-30 10:08:39 -08:00
Sean McArthur
d73d961166
fix blocking client to use request timeout for response body ( #1395 )
2021-11-30 10:03:54 -08:00
Biagio Festa
8b37ae4b15
Support to rustls 0.20 ( #1388 )
2021-11-29 12:25:57 -08:00
Paolo Barbolini
8fe22c4885
Remove direct dependency on the time crate ( #1390 )
2021-11-27 09:58:05 -08:00
niuhuan
161d731892
add resolve to blocking client ( #1384 )
2021-11-18 16:33:29 -08:00
Niklas Wolber
0ef1a2ea78
wasm: fix standalone/multipart body conversion to JsValue ( #1364 )
2021-11-18 16:13:59 -08:00
Fredrik Enestad
ab49de875e
Body from tokio::fs::File ( #1360 )
2021-10-21 15:23:17 -07:00
Karsten Jeschkies
be8ab7b951
docs: provide basic auth example ( #1362 )
2021-10-21 15:08:53 -07:00
Sean McArthur
59bc9a9323
v0.11.6
2021-10-18 15:57:30 -07:00
pfernie
136569802e
Update cookie_store dependency ( #1268 )
...
* Updated `cookie_store` dependency
* Bump `cookie_store` version to `0.14.0`
* Add documentation in `cookie` module to direct users to the
new `reqwest_cookie_store` crate for more advanced scenarios.
* update `cookie` dependency to `0.15`
* Update for `cookie_store` `v0.14.1`
* Replace usage of deprecated `cookie_store::CookieStore::get_request_cookies`
for `cookie_store::CookieStore::get_request_values`.
* Update `cookie_store` to `v0.15.0`
The deprecation of `get_request_cookies` should have warranted a
minor version bump.
2021-10-18 11:58:47 -07:00
Sean McArthur
bd4e0c663c
fmt: wasm body ( #1359 )
2021-10-18 11:19:12 -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
Niklas Wolber
bb3d102108
wasm: don't send request body as plain uint8 array ( #1358 )
...
Co-authored-by: Niklas Wolber <niklas.wolber+git@octopost.eu >
2021-10-17 01:06:37 +00:00
crapStone
fead177093
Fix body to JsValue conversion ( #1354 )
...
* fix body to JsValue conversion
* add tests
2021-10-14 17:31:49 -07:00
6543
c9217d8d1b
fix: wasm client: pass response header to builder by reference ( #1350 )
2021-10-13 16:03:23 -07:00
Dirk Stolle
597833d906
docs/comments: fix some typos ( #1346 )
2021-10-08 23:34:57 +00:00
Sean McArthur
5cc1eff23b
v0.11.5
2021-10-07 12:16:10 -07:00
Victor
d40276c0f0
wasm: add missing as_bytes method to Body implementation ( #1270 )
2021-10-07 19:04:18 +00:00
Adam Batkin
203cd5bfdc
Follow cURL's rules for parsing and matching NO_PROXY ( #1332 )
...
There are a few ways in which reqwest's handling of NO_PROXY differs from cURL (and other implementations). The biggest issue is that whitespace between entries should be ignored/trimmed, but is not (i.e. "NO_PROXY='a, b'" would never match "b"). In addition, according to cURL's rules, a NO_PROXY entry without a leading dot should match the domain itself as well as any subdomains (reqwest only handles exact matches if there is no leading dot) and entries with a leading dot should only match subdomains (but request allows exact matches). Finally, cURL allows a special entry "*" to match all entries (effectively disabling use of the proxy).
2021-10-07 11:39:31 -07:00
Jaehyeon Park
6d682b53e2
use Array when converting bytes into JsValue ( #1341 )
2021-10-04 17:16:41 -07:00
silvioprog
cf87893b17
Implement Clone for Identity ( #1334 )
2021-09-29 13:02:03 -07:00
Joshua Gilman
eb9e343142
docs: adds amplifying note about private key formats ( #1335 )
2021-09-27 18:35:25 +00:00
Konrad Borowski
cfa301c7fa
wasm: avoid dependency on serde-serialize feature ( #1337 )
...
Using this feature makes dependency cycles much more likely.
2021-09-27 10:58:04 -07:00
Zachary Dremann
2767071cac
Optimize replace_headers to avoid copies of keys
...
Sometimes, I'm amazed at what non lexical lifetimes allows.
2021-08-30 10:18:45 -07:00
Jonas Platte
2881354c90
Fix more clippy warnings
2021-08-26 13:42:46 -07:00
Jonas Platte
4be5ec7ffd
Replace use of assert_eq with assert
...
Reported by clippy.
2021-08-26 13:42:46 -07:00
Jonas Platte
1be9c34f01
Make ResponseBuilderExt not target-dependent
2021-08-26 13:42:46 -07:00
Jonas Platte
3879694c09
Add TryFrom<Request> for HttpRequest<Option<Body>>
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
David Leslie
bdc57beabb
fix: respect https_only option when redirecting ( #1313 )
2021-08-02 16:50:15 -07:00
Saruniks
e6a1a09f09
Fix compile error when target is wasm and multipart feature is enabled. ( #1296 )
2021-06-30 19:13:42 -07:00
Mohamed Daahir
bccefe7486
add option to disable http2 upgrade ( #1292 )
...
Co-authored-by: Sean McArthur <sean@seanmonstar.com >
2021-06-24 18:00:06 -07:00
Jan Verbeek
d9308f1b26
Fix documentation of http1_title_case_headers() ( #1294 )
...
Case is not preserved either way, so the old text was misleading.
2021-06-24 14:30:53 -07:00
Sean McArthur
b9cf2db697
CI: make a single final job that depends on all others ( #1291 )
2021-06-23 11:24:18 -07:00
nickelc
eee19c5f3c
Fix bare url warnings in multipart docs ( #1289 )
2021-06-22 07:18:46 -07:00
Sean McArthur
f5fe17876a
v0.11.4
2021-06-21 14:58:56 -07:00
Chris Campbell
8e5af459e5
Allow overriding of DNS resolution to specified IP addresses( #561 ) ( #1277 )
...
This change allows users to bypass the selected DNS resolver for
specific domains. The allows, for example, to make calls to a local TLS
server by rerouting a given domain to 127.0.0.1.
The approach I've taken for the design is to wrap the resolver in an
outer service. This leads to a fair amount of boilerplate code mainly to
be able to explain the typing to the compiler. The actual business logic
is very simple for the number of lines involved.
Closes #561
2021-06-16 14:41:08 -07:00
K.J. Valencik
c4388fcff9
WASM: Add try_clone implementations to Request and RequestBuilder ( #1286 )
...
Currently the wasm client does not implement `try_clone` on `Request` or `RequestBuilder` like the blocking and async clients.
This PR adds infallible `try_clone` implementations to the wasm client to improve the API parity.
*Note*: Even though these APIs are infallible on wasm (no streaming bodies), I chose to keep the API identical.
2021-06-14 10:36:56 -07:00
Mohamed Daahir
b48cb4a5aa
Add native-tls-alpn feature ( #1283 )
2021-06-09 17:05:29 -07:00
dependabot[bot]
bbeb1ede4e
Bump ssri from 6.0.1 to 6.0.2 in /examples/wasm_github_fetch ( #1262 )
...
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 12:39:12 -07:00
dependabot[bot]
841d47c6a2
Bump url-parse from 1.4.7 to 1.5.1 in /examples/wasm_github_fetch ( #1267 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 12:16:47 -07:00