guava icon indicating copy to clipboard operation
guava copied to clipboard

Request: Add X-Forwarded-Port to HttpHeaders

Open skylarsutton opened this issue 11 years ago • 3 comments

The HttpHeaders class contains a listing of known HTTP Header keys. It already contains "X-Forwarded-Proto" (X_FORWARDED_PROTO)... but is missing "X-Forwarded-Port" (suggestion: X_FORWARDED_PORT).

These values are commonly sent as a pair when using an SSL load ballencer in front of a cluster.

skylarsutton avatar Oct 26 '15 13:10 skylarsutton

I only see about 3200 hits on a popular search engine for X_FORWARDED_PORT.

If you can dig up an RFC, or some official-looking source, that would help justify it's addition.

kluever avatar Oct 26 '15 18:10 kluever

X_FORWARDED_PORT is the suggested java name, X-Forwarded-Port has 1.8 million results, Amazon Elastic Load Balancing seems to use it.

ghost avatar Nov 01 '15 09:11 ghost

https://www.google.com/search?q="X-Forwarded-Port" "About 7,450 results (0.26 seconds) "

Thanks for the Amazon link. However, since it's not an official standard, I don't think we should add it.

kluever avatar Nov 01 '15 19:11 kluever