Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIMEJSON = "application/json" MIMEHTML = "text/html" MIMEXML = "application/xml" MIMEXML2 = "text/xml" MIMEPlain = "text/plain" MIMEPOSTForm = "application/x-www-form-urlencoded" MIMEMultipartPOSTForm = "multipart/form-data" MIMEYAML = "application/x-yaml" )
Content-Type MIME of the most common data formats.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
func NewDownload ¶
NewDownload creates file attachment Response with following headers:
Content-Type Content-Length Content-Disposition
Content-Type is set using mime#TypeByExtension with the filename's extension. Content-Type will default to application/octet-stream if using a filename with an unknown extension.
type Redirect ¶
type Redirect struct {
// contains filtered or unexported fields
}
func NewRedirect ¶
NewRedirect creates new Response Rediredt object
Click to show internal directories.
Click to hide internal directories.