Skip to content
This repository was archived by the owner on Nov 17, 2019. It is now read-only.

Files

Latest commit

Feb 15, 2016
742bc8b · Feb 15, 2016

History

History

chapter-03

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 15, 2016

Context

Context has many convenient method for complete your work.

Req()

Get *Request object.

Forms()

Get query value by query key. See Forms

Cookies()

Get Cookies object.

SecureCookies()

Get secure Cookies.

ServeFile()

Send file to web browser.

ServeJson()

Send Json to web browser.

ServeXml()

Send Xml to web browser.

Download()

Download some file.

SaveToFile()

Save uploaded file to disk file.

Params()

Get router's matched params.

Action()

If executor is a struct, then return the pointer of struct, or return nil.

Redirect()

Write redirect to web browser.

NotModified()

Return 304.

Unauthorized()

Return unauthorized.

NotFound()

Return 404

Abort()

Return customized error.