Hostname Hostname Returns the hostname derived from the Host HTTP header. func ( c * Ctx ) Hostname () string // GET http://google.com/search app . Get ( "/"...
Redirect Redirect Redirects to the URL derived from the specified path, with specified status, a positive integer that corresponds to an HTTP status code. If not specified, ...
Type Type Sets the Content-Type HTTP header to the MIME type listed here specified by the file extension . func ( c * Ctx ) Type ( ext string , charset ... string ) ...
Subdomains Subdomains Returns a string slice of subdomains in the domain name of the request. The application property subdomain offset, which defaults to 2 , is used for dete...
Links Links Joins the links followed by the property to populate the response’s Link HTTP header field. c . Links ( link ... string ) app . Get ( "/" , func ( c * fi...
Links Links Joins the links followed by the property to populate the response’s Link HTTP header field. c . Links ( link ... string ) app . Get ( "/" , func ( c * f...
SendStatus SendStatus Sets the status code and the correct status message in the body, if the response body is empty . You can find all used status codes and messages here . ...
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...
Append Append Appends the specified value to the HTTP response header field. If the header is not already set, it creates the header with the specified value. func ( c ...
Subdomains Subdomains Returns a string slice of subdomains in the domain name of the request. The application property subdomain offset, which defaults to 2 , is used for dete...