OriginalURL OriginalURL Returns the original request URL. c . OriginalURL () string // GET http://example.com/search?q=something app . Get ( "/" , func ( c * fib...
Range Range A struct containing the type and a slice of ranges will be returned. func ( c * Ctx ) Range ( size int ) ( Range , error ) // Range: bytes=500-700, 7...
Range Range A struct containing the type and a slice of ranges will be returned. func ( c * Ctx ) Range ( size int ) ( Range , error ) // Range: bytes=500-700, ...
Method Method Returns a string corresponding to the HTTP method of the request: GET , POST , PUT , and so on.Optionally, you could override the method by passing a string. fu...
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 ...
Type Type Sets the Content-Type HTTP header to the MIME type listed here specified by the file extension . c . Type ( t string ) string app . Get ( "/" , func ( c ...
Type Type Sets the Content-Type HTTP header to the MIME type listed here specified by the file extension . c . Type ( t string ) string app . Get ( "/" , func ( c...
Body Body Returns the request body . c . Body () string // curl -X POST http://localhost:8080 -d user=john app . Post ( "/" , func ( c * fiber . Ctx ) { /...
Links Links Joins the links followed by the property to populate the response’s Link HTTP header field. func ( c * Ctx ) Links ( link ... string ) app . Get ( "/" ...