Commit Graph

870 Commits

Author SHA1 Message Date
Marcus Griep
7a11d397eb feat: enable client to be a service without ownership (#1556) 2022-06-13 13:45:30 -07:00
Sean McArthur
c4603b0a5d Disable dependabot wasm alerts 2022-06-08 10:46:17 -07:00
Sean McArthur
d536ce261c Fix RequestBuilder to send explicitly sensitive headers
Closes #1549
2022-05-31 14:10:19 -05:00
Jens Reimann
28840afd46 [#1095]: Implement basic_auth for WASM
Signed-off-by: Jens Reimann <jreimann@redhat.com>
2022-05-30 09:32:34 -05:00
hson
c4d5094522 Update path and toolchain up to date 2022-05-17 11:30:11 -05:00
hson
a80c863a42 Bump async-compression 2022-05-17 11:30:11 -05:00
hson
48a88fee7a fix style and format 2022-05-17 11:30:11 -05:00
hson
0b9b499356 Expose hyper HTTP2 keep-alive config. 2022-05-17 11:30:11 -05:00
Brian Cook
2a6e012009 Fix Proxy URL parse error handling. (#1539)
* Check for schema during URL parse error handling.  Lots of unit tests.
* Introduce BadScheme; an error source.  Change schema to scheme.  Use BadScheme instead of the error text to determine that a scheme is not present.
2022-05-05 16:23:36 -07:00
cui fliter
6ca5f3e50c docs: fix some typos (#1531)
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-25 10:00:01 -07:00
Mathspy
d24a5286c7 Implement tower Service for Client (#1420)
* Add tower-service

* Implement tower Service for Client
2022-04-20 16:14:35 -07:00
eyalsatori
5d8bf830cb Enable ClientBuilder to be configure with http1_allow_obsolete_multiline_headers_in_responses (#1521) (#1523) 2022-04-19 08:53:08 -07:00
Flavio Castelli
2e5debe248 [rustls] identity: handle elliptic curve private keys (#1526)
This commit improves the user experience of the users leveraging rustls.

When building the identity to use for requests, it's now possible to use
also private keys using Elliptic Curve that are encoded with SEC1
standard.

This is the default encoding used by openssl when EC keys are created.
Prior to this commit users had to convert those keys from the SEC1
encoding to the PKCS 8 one, which is something not trivial.

This feature has been recently added to rustls-pemfile crate.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2022-04-15 11:55:11 -07:00
MisileLaboratory
41425edfe3 Update license copyright. (#1527) 2022-04-15 10:31:59 -07:00
Paolo Barbolini
9bd4e90ec3 Bump rustls-pemfile to v1 (#1525) 2022-04-14 15:12:10 -07:00
Joel Natividad
fe0d9688f5 Bump cookie to 0.16; tokio-util to 0.7; trust-dns-resolver to 0.21 (#1509) 2022-03-31 10:08:42 -07:00
Sean McArthur
798df70fb0 v0.11.10 2022-03-14 11:39:43 -07:00
Mohamed Daahir
6dbac11d39 expose http::Extensions in Response (#1476) 2022-03-14 11:21:57 -07:00
wspsxing
ee57777d42 fix basic-auth for access http over https's proxy (#1491) 2022-03-14 11:08:04 -07:00
ComplexSpaces
b4f716bd3a Update winreg to 0.10 (#1496) 2022-03-10 20:04:16 -08:00
Nihaal Sangha
f889a7b6a7 Improve RequestBuilder.form() docs (#1490) 2022-03-03 15:00:12 -08:00
Sean McArthur
0170947fb4 Bump MSRV to 1.49 (#1484) 2022-02-25 13:46:13 -08:00
Vidar Magnusson
faea83b562 Fix doc example code for query parameters (#1480) 2022-02-25 13:07:42 -08:00
Ed Morley
70d05cfab6 docs; fix typo in Client::new() (#1482)
`s/cannot initialized/cannot be initialized/`
2022-02-24 14:38:54 -08:00
Paolo Barbolini
0384759a19 Bump rustls-pemfile to 0.3 (#1459) 2022-02-07 08:51:44 -08:00
Konrad Borowski
a654d3951e Bump serde_urlencoded to 0.7.1 (#1457)
serde_urlencoded 0.7.0 has an incorrect serde version dependency.
This causes issues in `cargo update -Z minimal-versions` builds.
It's not noticeable while testing in CI because cookie_store depends
on serde 1.0.126, however because this is an optional dependency
there is a possibility that a project using reqwest won't enable
it.
2022-02-04 05:59:03 -08:00
kraktus
9339c54323 Doc: stream feature is needed for wrap_stream and From<File> for Body (#1456)
At least `wrap_stream` it is written in plain text, but adding the visual flag should be better and coherent with `byte_stream` documentation, but nothing is shown for `From<File>` for `Body`.

Co-authored-by: kraktus <kraktus@users.noreply.github.com>
2022-02-02 15:09:25 -08:00
Tjeu Kayim
d92d2aa3ce Log instead of error MissingOrMalformedExtensions in rustls_native_certs::load_native_certs (#1316) 2022-01-27 10:57:52 -08:00
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