http
http copied to clipboard
Constants for `x-forwarded-*` headers
Was it a conscious decision not to add HeaderName constants for x-forwarded-for, x-forwarded-host and x-forwarded-proto? They are only mentioned in the FORWARDED const.
If not, rather than adding them to my project, I'd be happy to create a PR for it, should be trivial.
This came up before in https://github.com/hyperium/http/pull/383#issuecomment-1111575240.
Sounds like the suggested way to use HeaderName::from_static.