IPs IPs Returns an array of IP addresses specified in the X-Forwarded-For request header. c . IPs () [] string // X-Forwarded-For: proxy1, 127.0.0.1, proxy3 app ...
FormValue FormValue Any form values can be retrieved by name, the first value from the given key is returned. c . FormValue ( name string ) string app . Post ( "/" ...
Write Write Appends any input to the HTTP body response. c . Write ( body ... interface {}) app . Get ( "/" , func ( c * fiber . Ctx ) { c . Write ( "Hello, " ...
Status Status Sets the HTTP status for the response. Method is a chainable . c . Status ( status int ) app . Get ( "/" , func ( c * fiber . Ctx ) { c . Status...
Status Status Sets the HTTP status for the response. Method is a chainable . c . Status ( status int ) app . Get ( "/" , func ( c * fiber . Ctx ) { c . Status...
XHR XHR A Boolean property, that is true , if the request’s X-Requested-With header field is XMLHttpRequest , indicating that the request was issued by a client library (such ...
Set Set Sets the response’s HTTP header field to the specified key , value . func ( c * Ctx ) Set ( key string , val string ) app . Get ( "/" , func ( c * fiber...