SaveFile SaveFile Method is used to save any multipart file to disk. func ( c * Ctx ) SaveFile ( fh * multipart . FileHeader , path string ) error app . Post ( ...
ParamsInt ParamsInt Method can be used to get an integer from the route parameters. Please note if that parameter is not in the request, zero will be returned. If the parameter...
Cookies Cookies Get cookie value by key. Signature s c . Cookies ( key string ) string app . Get ( "/" , func ( c * fiber . Ctx ) { // Get cookie by key: c...
Protocol Protocol Contains the request protocol string: http or https for TLS requests. c . Protocol () string // GET http://example.com app . Get ( "/" , func...
BaseURL BaseURL Returns the base URL (protocol + host ) as a string . c . BaseURL () string // GET https://example.com/page#chapter-1 app . Get ( "/" , func ( c ...
QueryParser QueryParser This method is similar to BodyParser , but for query parameters. func ( c * Ctx ) QueryParser ( out interface {}) error // Field names sh...
JSONP JSONP Sends a JSON response with JSONP support. This method is identical to JSON , except that it opts-in to JSONP callback support. By default, the callback name is simp...
QueryParser QueryParser This method is similar to BodyParser , but for query parameters. c . QueryParser ( out interface {}) error // Field names should start with an...