Hostname contains the hostname derived from the X-Forwarded-Host or Host HTTP header using the c.Host() method. Returned value is only valid within the handler. Do not store any references. Example: URL: https://example.com:8080 -> Hostname: example.com Make copies or use the Immutable setting inste
()
| 94 | // Make copies or use the Immutable setting instead. |
| 95 | // Please use Config.TrustProxy to prevent header spoofing if your app is behind a proxy. |
| 96 | Hostname() string |
| 97 | // Port returns the remote port of the request. |
| 98 | Port() string |
| 99 | // IP returns the client's IP address. When the request comes from a trusted proxy (see |
no outgoing calls