Commit Graph

46 Commits

Author SHA1 Message Date
Sean McArthur
691bcfe894 improve general documentation 2019-01-07 14:20:39 -08:00
Sean McArthur
11d7812e88 rename Incompatile error kind to TlsIncompatible 2019-01-04 14:46:58 -08:00
Sean McArthur
ad854c3ee8 add Proxy::basic_auth support
Closes #322
2019-01-04 14:40:19 -08:00
Sean McArthur
b9f4661332 rename TLSBackend to TlsBackend 2019-01-03 12:43:22 -08:00
Sean McArthur
44837c1b69 Replace getaddrinfo resolver with trust-dns-resolver 2018-12-18 12:54:22 -08:00
quininer
37039760f8 Add rustls support (#390) 2018-12-17 11:57:43 -08:00
Sean McArthur
97393143a5 put all TLS functionality behind a feature flag
The "Cargo feature" `default-tls`, which is enabled by default, is
added, with all TLS support relying on it. This allows using reqwest but
disabling the `native-tls` dependency, by disabling this feature.

Closes #225
2018-10-29 16:37:25 -07:00
Yannick Heinrich
c4bf420021 Integrate helper functions inside corresponding structs 2018-10-05 11:19:52 -07:00
Yannick Heinrich
22fa725f48 Document gzip client's behaviour (#358)
As suggested in #306, the behaviour of the `auto gzip decompression` should
be clearly explained inside the documentation.

Closes #306
2018-10-03 10:14:41 -07:00
Sean McArthur
680387f790 try utf8 for location headers 2018-09-25 11:46:46 -07:00
Sean McArthur
cd7dbe226c log invalid location header value on error 2018-09-21 14:22:41 -07:00
Sean McArthur
5bf94e7bdd fix panic if Location header is not a valid string
Closes #354
2018-09-21 14:13:32 -07:00
Xeoeen
3a5af68b92 remove invalid headers after erasing body (#349) 2018-09-19 12:07:59 -07:00
Sean McArthur
610cdd266c Fix panicking when passed a file:// URL
Closes #347
2018-09-18 12:43:54 -07:00
Sean McArthur
55fcedcf97 pub(crate)ify the async::client module 2018-09-11 14:37:50 -07:00
Sean McArthur
1ded95ce0e pub(crate)ify the async::request module 2018-09-11 14:33:38 -07:00
Sean McArthur
2f893718ba pub(crate)ify async::response module 2018-09-11 14:27:28 -07:00
Sean McArthur
13cfc4df85 refactor redirect facade to use pub(crate) 2018-08-23 10:04:25 -07:00
Sean McArthur
ef529df3f2 remove inline annotations on client builder methods 2018-08-23 10:04:25 -07:00
Sean McArthur
afbeb1a384 change ClientBuilders to by-value builders 2018-08-23 10:04:25 -07:00
Sean McArthur
3fbda4fd49 remove unstable language and feature 2018-08-15 16:08:47 -07:00
Scott Schroeder
d8e47babf6 change invalid cert api to match native-tls (#327) 2018-08-13 15:08:02 -07:00
Yannick Heinrich
11f8588989 upgrade to native-tls 0.2 + invalid certs (#325)
- Bumps `native-tls` dependency to 0.2 and adapt code accordingly
- Import code used from `tokio-tls` into `connect_async` and adapt dependencies accordinlgy
- Add an option for using `danger_accept_invalid_certs` inside the `Config` struct
2018-08-08 13:14:36 -07:00
Sean McArthur
6c78e363e0 remote tokio-core dependency 2018-07-05 14:06:01 -07:00
Yash Srivastav
c417d6dab8 Upgrade hyper to 0.12
Closes #304
2018-07-05 10:03:31 -07:00
Mattias Päivärinta
31504388d7 Add status code accessor to RedirectAttempt (#285) 2018-04-15 15:11:50 -07:00
Sean McArthur
7db860759d Revert "Merge pull request #232 from tafia/hyper-proxy"
This reverts commit b09b8620a6, reversing
changes made to abfcd2796e.
2018-02-15 12:13:33 -08:00
Sean McArthur
374ec44d34 remove deprecated no_proto usage of hyper 2018-01-05 15:20:40 -08:00
Sean McArthur
b09b8620a6 Merge pull request #232 from tafia/hyper-proxy
Remove proxy handling in favor of hyper-proxy crate
2018-01-02 10:12:44 -08:00
Johann Tuffe
4101c78a1f use hyper-proxy 0.4.0 which allows multiple proxies 2017-12-21 15:40:36 +08:00
Johann Tuffe
871b8076e4 add proxy authorization 2017-12-19 15:44:06 +08:00
Sean McArthur
120890f041 enable hyper's no_proto config 2017-12-18 18:20:35 -08:00
Johann Tuffe
07f89984c4 store intercept to set_proxy on requests 2017-12-18 17:53:17 +08:00
Johann Tuffe
8b1bb0b53e remove proxy handling in favor of hyper-proxy crate 2017-12-15 11:51:02 +08:00
knight42
f4437ea7b1 feat: set default headers 2017-10-22 13:01:35 +08:00
Henning Kowalk
9d158e69f8 Small yet annoying typo fixed. 2017-10-21 01:21:57 +02:00
Ömer Sinan Ağacan
d9d92b7479 Implement option to set num of DNS threads in async ClientBuilder 2017-10-09 21:16:04 +03:00
Sean McArthur
390fc34148 wip 2017-09-04 13:11:20 -07:00
Sean McArthur
779f8080ef change Builders to only error at the end
Closes #189
2017-08-31 18:10:45 -07:00
Anthony Nowell
646c8b8efc Support PKCS12 identity on the ClientBuilder 2017-08-25 15:38:45 -07:00
Sean McArthur
229a2384a6 add Proxy::custom to allow custom proxy functions 2017-08-02 15:03:37 -07:00
Sean McArthur
2d11a4bd71 fix 307/308 redirects with GET requests 2017-07-24 16:11:54 -07:00
Brian Henderson
17c0b200cc do not set_proxy() for https requests 2017-07-03 21:07:44 -04:00
Sean McArthur
1785e0dc5d Disable hostname verification when option is enabled
Closes #153
2017-06-28 11:03:28 -07:00
Sean McArthur
6cdaff4b66 add a Proxy type
Proxies can currently be configured to intercept HTTP, HTTPS, and all
requests. HTTPS tunneling is supported.

Closes #30
2017-06-22 09:49:00 -07:00
Sean McArthur
665b4fe718 upgrade hyper to v0.11 2017-06-21 09:47:21 -07:00