-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.go
21 lines (15 loc) · 1017 Bytes
/
proxy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package headers
// XForwardedFor identifieds the originating IP addresses of a client
// connecting to a web server through an HTTP proxy or a load balancer.
const XForwardedFor = "X-Forwarded-For"
// XForwardedHost identifies the original hostname requested that a client used to connect to your proxy or load balancer.
const XForwardedHost = "X-Forwarded-Host"
// XForwardedPort identifies the original port requested that a client used to connect to your proxy or load balancer.
const XForwardedPort = "X-Forwarded-Port"
// XForwardedProto identifies the original protocol (HTTP or HTTPS) requested that a client used to connect to your proxy or load balancer.
const XForwardedProto = "X-Forwarded-Proto"
// Via added by a proxied, both forward and reverse proxies, and can appear in the request headers and the response headers.
const Via = "Via"
// XRealIP added by a proxied, both forward and reverse proxies, and can appear in
// the request headers and the response headers.
const XRealIP = "X-Real-IP"