🧬 Middleware 🧬 Middleware 🧬 Middleware This section contains information about first-party Fiber middleware. For documentation about writing your own middleware, see Routing/...
IPs IPs Returns an array of IP addresses specified in the X-Forwarded-For request header. func ( c * Ctx ) IPs () [] string // X-Forwarded-For: proxy1, 127.0.0.1...
Fasthttp Fasthttp You can still access and use all Fasthttp methods and properties. Signature Please read the Fasthttp Documentation for more information. Example app...
Path Path Contains the path part of the request URL. Optionally, you could override the path by passing a string. c . Path ( override ... string ) string // GET http...
Hostname Hostname Returns the hostname derived from the Host HTTP header. c . Hostname () string // GET http://google.com/search app . Get ( "/" , func ( c * fi...
Status Status Sets the HTTP status for the response. Method is a chainable . func ( c * Ctx ) Status ( status int ) * Ctx app . Get ( "/" , func ( c * fiber ....