Sean McArthur
53495e1526
Redesign Error type
...
- The `Error`'s kind is a now a set of variants depending on the context
of when an error could occur.
- If another error was the cause, it is now always the `source`.
Along with the `is_*` methods, this should help in understanding *when*
a certain error occurred. For example, an error setting the TLS
certificates will return a builder error, with the TLS error as the
source. This should help differentiate from a TLS error that happens
when connecting to a server.
It also makes the internal code less dependent on all the exact
dependencies that can be enabled or disabled.
2019-09-17 14:23:22 -07:00
Lucas
80c4294b74
documented socks proxy ( #609 )
2019-09-05 09:37:21 -07:00
Nikhil Benesch
f60456c8e3
Upgrade to url v2.0 ( #583 )
2019-09-04 18:27:20 -07:00
danieleades
cf8944a0f0
cargo fmt ( #604 )
...
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Daniel Eades
4bb4149b63
remove unnecessary double-colons
2019-08-16 12:59:55 -07:00
Daniel Eades
3ba4b6eadf
port all optional features to 2018-edition
2019-08-16 12:59:55 -07:00
Daniel Eades
5dc5162765
update and tidy code
2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e
cargo fix --edition
2019-08-16 12:59:55 -07:00
WindSoilder
577d06c363
Add support for system/environment proxies ( #547 )
2019-07-01 16:27:58 -07:00
Sean McArthur
964d87ce57
Update trait object syntax to use 'dyn'
2019-06-03 13:15:09 -07:00
Diggory Blake
c45ff29bfb
Add support for SOCKS5 proxies, and parsing proxy authorizations from URLs
2019-04-08 11:42:18 -07:00
Sean McArthur
5c3494b81d
Check redirect locations are valid Uris ( #486 )
...
Closes #484
2019-04-01 11:13:01 -07:00
Sean McArthur
ad854c3ee8
add Proxy::basic_auth support
...
Closes #322
2019-01-04 14:40:19 -08:00
Yannick Heinrich
c4bf420021
Integrate helper functions inside corresponding structs
2018-10-05 11:19:52 -07:00
Yannick Heinrich
647f59756e
Add missing pub(crate) statements.
2018-10-05 11:19:52 -07:00
Sean McArthur
610cdd266c
Fix panicking when passed a file:// URL
...
Closes #347
2018-09-18 12:43:54 -07:00
Yash Srivastav
c417d6dab8
Upgrade hyper to 0.12
...
Closes #304
2018-07-05 10:03:31 -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
Johann Tuffe
fa0debd128
add back Proxy::Clone
2017-12-29 10:24:11 +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
Johann Tuffe
2f403175dc
uses hyper-proxy 0.3.0
2017-12-19 15:23:39 +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
Sean McArthur
9631b31bfc
adjust proxy doc example
2017-10-26 15:31:06 -07:00
Sean McArthur
779f8080ef
change Builders to only error at the end
...
Closes #189
2017-08-31 18:10:45 -07:00
Sean McArthur
229a2384a6
add Proxy::custom to allow custom proxy functions
2017-08-02 15:03:37 -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