SendFile SendFile Transfers the file from the given path. Sets the Content-Type response HTTP header field based on the filenames extension. Method use gzipping by default...
Body Body Returns the raw request body . func ( c * Ctx ) Body () [] byte // curl -X POST http://localhost:8080 -d user=john app . Post ( "/" , func ( c * fi...
Get Get Returns the HTTP request header specified by the field. The match is case-insensitive . func ( c * Ctx ) Get ( key string , defaultValue ... string ) strin...
Grouping Grouping If you have many endpoints, you can organize your routes using Group func main () { app := fiber . New () api := app . Group ( "/api" , cors...
Format Format Performs content-negotiation on the Accept HTTP header. It uses Accepts to select a proper format. If the header is not specified or there is no proper form...
Using npm Packages Searching for packages npm on the client Installing npm packages Using npm packages Importing styles from npm Building with other assets from npm Recompili...
Download Download Transfers the file from path as an attachment . Typically, browsers will prompt the user to download. By default, the Content-Disposition header filename= ...
Download Download Transfers the file from path as an attachment . Typically, browsers will prompt the user to download. By default, the Content-Disposition header filename= ...