http icon indicating copy to clipboard operation
http copied to clipboard

Constants for `x-forwarded-*` headers

Open tomkarw opened this issue 2 years ago • 1 comments

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.

tomkarw avatar Apr 18 '23 09:04 tomkarw

This came up before in https://github.com/hyperium/http/pull/383#issuecomment-1111575240.

Sounds like the suggested way to use HeaderName::from_static.

bheesham avatar Mar 11 '25 04:03 bheesham