Commit Graph

49 Commits

Author SHA1 Message Date
9f4b94724f Do not set Host header in proxied request
If there is a reverse proxy downstream of hyper-reverse-proxy, and
the forward_url is something like `http://127.0.0.1:4333`, with the
expectation that the downstream RP will handle the request further, then
the request ends up with `Host: 127.0.0.1` as a header, which is
incorrect. It's seemingly impossible to override this behavior.

Removing the setting of the Host header to fix this, as it's not
necessary anyway.
2024-01-14 17:35:03 +01:00
somehowchris
e73a76600c feat: include README.md inside mod doc 2022-07-29 09:32:49 -03:00
Christof Weickhardt
102d50a024 chore: update benches 2022-06-11 15:21:54 -03:00
chesedo
16ce317c7e tests: add more upgrade tests 2022-05-21 14:49:16 -03:00
chesedo
87f1ed675a refactor: improve flow 2022-05-21 14:49:16 -03:00
chesedo
ae854b395f bug: handle space in connection header correctly 2022-05-21 14:49:16 -03:00
chesedo
c3d2183195 refactor: simplify 2022-05-21 14:49:16 -03:00
chesedo
d4fdbf2a2e feat: ws support 2022-05-21 14:49:16 -03:00
Christof Weickhardt
96a398de85
feat: static client (#27)
* feat: static client

* feat: client as input
2022-05-01 15:36:09 -03:00
Christof Weickhardt
537484122d feat: basic tracing 2022-04-20 22:29:30 -03:00
Felipe Noronha
e52cb8f844 moving code around 2022-04-13 22:58:56 -03:00
Felipe Noronha
6a8d181b77 fix clippy warns 2022-04-13 22:50:58 -03:00
Felipe Noronha
359aa4060b fmt 2022-04-13 22:46:07 -03:00
Christof Weickhardt
2563ad1289 feat: join queries 2022-04-13 22:13:39 -03:00
Christof Weickhardt
51e2a0d05b feat: use rustls 2022-04-13 22:13:02 -03:00
Felipe Noronha
d81e01c2ef fix clippy warning 2022-04-13 21:21:30 -03:00
Felipe Noronha
d41279a2a2 fix clippy warns 2022-04-13 21:16:09 -03:00
Felipe Noronha
e30c009fa7 fix fmt 2022-04-13 20:57:27 -03:00
Felipe Noronha
5b38a9dfe8 fix tests 2022-04-13 20:55:34 -03:00
Christof Weickhardt
cb3127cc1d feat: udpate hop headers list 2022-04-13 19:56:16 -03:00
Christof Weickhardt
bf833a765e perf: remove headers inline 2022-04-13 19:56:16 -03:00
Christof Weickhardt
f9db949910
test: adding benchmarks (#26) 2022-04-12 23:29:52 -03:00
Christof Weickhardt
c25de2e313
perf: remove format for X-Forwarded-For header (#25) 2022-04-12 23:25:39 -03:00
Christof Weickhardt
4b3e3ffda1
fix: host header not set on responses (#23) 2022-04-12 23:23:09 -03:00
Christof Weickhardt
16f235b9fd
feat: declare headers globally (#20) 2022-04-03 14:20:17 -03:00
Christof Weickhardt
72faf73f4a
fix: remove format from uri building (#21) 2022-04-03 14:19:39 -03:00
Christof Weickhardt
df087ff55e
feat: rewrite host header (#19) 2022-03-20 20:39:47 -03:00
Casey Primozic
8e4efa3c10
Add support for connecting to HTTPS servers (#6)
* Add the `https` feature which condionally compiles the `hyper-tls` crate
 * Abstract HTTP(S) client building to a helper function with two versions: One which uses the `hyper-tls` `HttpsConnector` connector, and one which uses the default built-in `HttpConnector`
 * Update documentation on how to enable HTTPS support
2022-03-17 23:05:07 -03:00
Felipe Noronha
ee55e7d39f derive debug for ProxyError 2022-03-12 13:58:42 -03:00
Felipe Noronha
43e2dff325 lint 2022-03-12 13:53:06 -03:00
Felipe Noronha
cd9a5053eb lint 2022-03-12 12:48:31 -03:00
Felipe Noronha
3f341d9337 update docs 2022-03-12 12:04:55 -03:00
Bruno Thomas
6e9aa4501f
upgrade libraries (#16)
* chore: upgrade hyper/tokio libraries

* updates tokio reactor version

* doc: updates documentation in README and rust code doc
2022-03-12 11:47:58 -03:00
Bruno Thomas
f8cd92c507 chore: upgrade hyper/tokio libraries 2022-03-10 16:24:36 -03:00
Jan Kantert
d109fcbd62 remove futures dependency 2020-05-04 00:18:27 -03:00
Jan Kantert
55103945a7 add error handling 2020-05-04 00:18:27 -03:00
Jan Kantert
d838516387 port lib to hyper 0.13 and future 0.3 2020-05-04 00:18:27 -03:00
Felipe Noronha
b53642da26
use edition 2018. bump dependencies. (#5) 2019-03-11 14:12:28 -03:00
Felipe Noronha
48ed13e6ae edit comment 2019-02-16 16:10:36 -02:00
Felipe Noronha
aa8947a614 fix tests 2019-02-16 16:01:00 -02:00
Felipe Noronha
0b35f7aa19 Rewrite docs. 2019-02-16 15:43:11 -02:00
Felipe Noronha
fed9dd66b6 refactoring 2018-11-24 13:54:37 -02:00
Felipe Noronha
692d287ee4 updates to hyper 0.12.16 2018-11-24 13:27:20 -02:00
Felipe Noronha
d45b2f71d0 start from scratch 2018-11-24 12:54:41 -02:00
Brendan Zabarauskas
2b2ef26523 Add examples and improve documentation 2017-07-15 18:41:44 +10:00
Brendan Zabarauskas
217cecd14e Add example and remove dependency on void crate 2017-07-15 17:51:06 +10:00
Brendan Zabarauskas
e0eb5dfe18 Add tests for forwarded for header 2017-07-15 16:54:46 +10:00
Brendan Zabarauskas
4bbb0340ff Fix hop-header filtering 2017-07-15 16:53:56 +10:00
Brendan Zabarauskas
2e5475d45d Initial commit 2017-07-15 16:28:59 +10:00