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.
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 onlisten_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.