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...
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...
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...
SaveFile SaveFile Method is used to save any multipart file to disk. c . SaveFile ( fh * multipart . FileHeader , path string ) app . Post ( "/" , func ( c * fibe...
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= ...
SaveFile SaveFile Method is used to save any multipart file to disk. c . SaveFile ( fh * multipart . FileHeader , path string ) app . Post ( "/" , func ( c * fiber...
IP IP Returns the remote IP address of the request. func ( c * Ctx ) IP () string app . Get ( "/" , func ( c * fiber . Ctx ) error { c . IP () // "127.0....
IP IP Returns the remote IP address of the request. func ( c * Ctx ) IP () string app . Get ( "/" , func ( c * fiber . Ctx ) error { c . IP () // "127.0.0...
OriginalURL OriginalURL Contains the original request URL. c . OriginalURL () string // GET http://example.com/search?q=something app . Get ( "/" , func ( c * f...
SaveFile SaveFile Method is used to save any multipart file to disk. func ( c * Ctx ) SaveFile ( fh * multipart . FileHeader , path string ) error app . Post ( ...