MCPcopy
hub / github.com/gofiber/fiber / Host

Method Host

req_interface_gen.go:90–90  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 15

BackMethod · 0.65
FullURLMethod · 0.65
HostMethod · 0.65
BaseURLMethod · 0.65
Test_Ctx_HostFunction · 0.65
Benchmark_Ctx_HostFunction · 0.65
composeRedirectURLFunction · 0.65
parserResponseCookieFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 7

Test_Ctx_HostFunction · 0.52
Benchmark_Ctx_HostFunction · 0.52
testFiberToHandlerFuncFunction · 0.52