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
a4deffef77
tests: refactor uris
2022-05-21 14:49:16 -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
605dba0521
refactor: trim down tokio
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
chesedo
20dbf00931
tests: ws
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
Christof Weickhardt
48ccbc1099
feat: update ci
2022-04-20 22:26:53 -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
2b5a7cae2d
fix link
2022-04-13 21:37:23 -03:00
Felipe Noronha
60b5d9c4a6
Merge branch 'master' of https://github.com/felipenoris/hyper-reverse-proxy
2022-04-13 21:30:46 -03:00
Felipe Noronha
e361e9412d
update badges
2022-04-13 21:30:41 -03:00
Felipe Noronha
527e05f768
Update main.yml
2022-04-13 21:28:10 -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
6d3c35df9f
Create main.yml
2022-04-13 21:01:19 -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
Bruno Thomas
b7f0bf9d81
test: add basic parallel unit tests ( #17 )
2022-04-07 09:31:27 -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
4dee11dc35
mark next release iteration v0.5.2-dev
2022-03-12 14:04:16 -03:00
Felipe Noronha
8238393993
Tag v0.5.1
2022-03-12 14:02:31 -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
96592ab0f9
mark next release iteration v0.5.1-dev
2022-03-12 13:53:02 -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
Felipe Noronha
eb2aceef09
update README
2022-03-12 11:58:18 -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
a01c1381b7
updates tokio reactor version
2022-03-10 16:24:36 -03:00
Bruno Thomas
f8cd92c507
chore: upgrade hyper/tokio libraries
2022-03-10 16:24:36 -03:00
Felipe Noronha
ff09ac01a1
Update README.md
2021-02-23 02:00:53 -03:00