XHR XHR A Boolean property, that is true , if the request’s X-Requested-With header field is XMLHttpRequest , indicating that the request was issued by a client library (such ...
Method Method Returns a string corresponding to the HTTP method of the request: GET , POST , PUT , and so on.Optionally, you could override the method by passing a string. fu...
Method Method Returns a string corresponding to the HTTP method of the request: GET , POST , PUT , and so on.Optionally, you could override the method by passing a string. fu...
Subdomains Subdomains An array of subdomains in the domain name of the request. The application property subdomain offset, which defaults to 2 , is used for determining the be...
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 ( "/" ...
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...
MultipartForm MultipartForm To access multipart form entries, you can parse the binary with MultipartForm() . This returns a map[string][]string , so given a key the value will...
Links Links Joins the links followed by the property to populate the response’s Link HTTP header field. func ( c * Ctx ) Links ( link ... string ) app . Get ( "/"...
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...