Host contains the host derived from the X-Forwarded-Host or Host HTTP header. Returned value is only valid within the handler. Do not store any references. In a network context, `Host` refers to the combination of a hostname and potentially a port number used for connecting, while `Hostname` refers
()
| 88 | // Make copies or use the Immutable setting instead. |
| 89 | // Please use Config.TrustProxy to prevent header spoofing if your app is behind a proxy. |
| 90 | Host() string |
| 91 | // Hostname contains the hostname derived from the X-Forwarded-Host or Host HTTP header using the c.Host() method. |
| 92 | // Returned value is only valid within the handler. Do not store any references. |
| 93 | // Example: URL: https://example.com:8080 -> Hostname: example.com |
no outgoing calls