Mark Hildreth
326b8a7769
Marked sensitive headers as such in docs ( #1160 )
2021-02-05 11:02:38 -08:00
William Chargin
9ae11b26fc
Document that blocking and async do not mix ( #1159 )
...
See discussion on #1017 . This patch adds documentation to `blocking` at
module level and to its `Client::new` and `ClientBuilder::build`, noting
that you can’t create or use a blocking client from within an async
runtime, and suggesting potential alternatives.
Presumably, all the other methods on `Client` also have this property,
but hitting the failure mode would require building a `blocking::Client`
outside an async runtime and then moving it into a runtime to send
requests; seems potentially not worth polluting all the docs.
Test Plan:
Ran `cargo doc --features blocking` and verified that the links work.
wchargin-branch: docs-blocking-no-async
wchargin-source: 0eb36352959cd2ca0b19df5836e75230dc619b9d
2021-02-05 11:00:11 -08:00
Alexis Mousset
31b11c3f4c
Add a tls_built_in_root_certs option for Client ( #1150 )
2021-01-27 06:39:36 -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
Rust大闸蟹
1f425a0244
example: update usage doc for blocking example ( #1112 )
2020-12-30 12:05:01 -08:00
Paolo Barbolini
3fb2c1c143
Remove deprecated features ( #1124 )
2020-12-30 10:24:57 -08:00
messense
a19eb34196
Update to tokio 1.0, bytes 1.0 ( #1076 )
...
Co-authored-by: Wim Looman <git@nemo157.com >
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
2020-12-30 09:57:50 -08:00
Muhammad Hamza
5ee4fe5ab6
Fix documentation line in for wasm Response
2020-12-20 07:27:35 -08:00
varoonp123
73990a7a42
Add From<Bytes> for blocking::Body ( #1114 )
2020-12-15 07:22:44 -08:00
Sean McArthur
5099192b92
v0.10.10
2020-12-14 14:37:37 -08:00
Sean McArthur
46efd05810
Change default tcp_keepalive value to be disabled ( #1113 )
2020-12-14 13:42:35 -08:00
dependabot[bot]
3ca0bd98e8
Bump ini from 1.3.5 to 1.3.8 in /examples/wasm_github_fetch ( #1111 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 16:28:58 -08:00
Rust大闸蟹
cdfdae5ecd
Fix comment in blocking example ( #1107 )
2020-12-10 07:13:13 -08:00
Martin André
541d0c2aba
Add https_only() for ClientBuilder ( #1102 )
...
Closes #980
2020-12-09 10:40:46 -08:00
Corey Farwell
474d9eff9b
Document how a RequestBuilder gets constructed ( #1097 )
2020-12-09 07:17:37 -08:00
Martin André
a2133aec3b
blocking: add tcp_keepalive option ( #1100 )
2020-12-07 07:56:56 -08:00
Zicklag
3cd9c29b30
Fix system HTTP proxy to send proxy-authorization ( #1021 )
...
Previously, HTTP proxies loaded from the system settings were not
respected for non-HTTPS requests. Now the PROXY_AUTHORIZATION header is
supplied on HTTP requests with a system proxy.
2020-11-24 10:34:38 -08:00
Konrad Borowski
e7be3eda04
Make wasm-bindgen-test a dev dependency
2020-11-24 07:04:21 -08:00
Taylor Thomas
2ca0e26cfa
feat(multipart): Adds support for manually setting size
...
I also added a simple sanity test to make sure it doesn't override
a `Body` with an actual size. I also double checked that this works
with a project where we are using streams.
Closes #1090
2020-11-23 11:10:26 -08:00
Sean McArthur
b1d498ffa8
v0.10.9
2020-11-19 16:04:32 -08:00
Qing Lei
0bae133b71
Enable brotli for blocking ( #1061 )
2020-11-19 16:03:34 -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
stevelr
4fe07d81cf
add ClientBuilder.default_headers() for wasm32 target ( #1084 )
2020-11-16 13:09:47 -08:00
Taiki Endo
2dec3b725f
Remove pin-related unsafe code
2020-11-13 15:12:06 -08:00
Taiki Endo
ff507e12fc
Update pin-project-lite to 0.2.0
2020-11-13 15:12:06 -08:00
est31
5b46bfc0bb
Update url semver requirement to 2.2 ( #1087 )
...
Fixes #1085
2020-11-13 14:37:04 -08:00
stevelr
045d7c7d2f
Support Cloudflare workers runtime ( #1081 )
2020-11-11 10:10:01 -08:00
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