ngrok / ngrok-rust

Embed ngrok secure ingress into your Rust apps with a single line of code.
Apache License 2.0
319 stars 19 forks source link

ngrok: auto-rewrite the http host header #123

Closed jrobsonchase closed 1 year ago

jrobsonchase commented 1 year ago

This is now implemented by our request header middleware upstream, but this adds some convenience and docs to it.

Users can call http_builder.host_header_rewrite(true); to have it set automatically on listen_and_forward calls, and it also points out the .request_header(...) approach to setting specific values.

Also canonicalizes (lowercases, really) header keys to make sure we aren't sending multiple values for the same differently-cased "Host" header.

jrobsonchase commented 1 year ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.