Cookies Cookies Get cookie value by key, you could pass an optional default value that will be returned if the cookie key does not exist. Signatures func ( c * Ctx ) Coo...
Static files Static files To serve static files such as images , CSS and JavaScript files, replace your function handler with a file or directory string. Function signature:...
OriginalURL OriginalURL Returns the original request URL. func ( c * Ctx ) OriginalURL () string // GET http://example.com/search?q=something app . Get ( "/" ...
Hostname Hostname Returns the hostname derived from the Host HTTP header. func ( c * Ctx ) Hostname () string // GET http://google.com/search app . Get ( "/" ...
FormValue FormValue Any form values can be retrieved by name, the first value from the given key is returned. func ( c * Ctx ) FormValue ( key string , defaultValue ....
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...