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

Method Params

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

Params is used to get the route parameters. Defaults to empty string "" if the param doesn't exist. If a default value is given, it will return that value if the param doesn't exist. Returned value is only valid within the handler. Do not store any references. Make copies or use the Immutable settin

(key string, defaultValue ...string)

Source from the content-addressed store, hash-verified

145 // Returned value is only valid within the handler. Do not store any references.
146 // Make copies or use the Immutable setting to use the value outside the Handler.
147 Params(key string, defaultValue ...string) string
148 // Scheme contains the request protocol string: http or https for TLS requests.
149 // Please use Config.TrustProxy to prevent header spoofing if your app is behind a proxy.
150 Scheme() string

Implementers 1

Calls

no outgoing calls