Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error403 = &HTTPError{403, "Authorization required."}
View Source
var Error404 = &HTTPError{404, "Resource not found."}
View Source
var Error500 = &HTTPError{500, "Internal service error."}
Functions ¶
func WriteView ¶
func WriteView(view View, res http.ResponseWriter)
Types ¶
type CSPWrapper ¶
func (*CSPWrapper) Headers ¶
func (c *CSPWrapper) Headers() Headers
type CopyView ¶
type CopyView struct { Status int Length int Type string Reader io.ReadCloser }
func (*CopyView) ContentLength ¶
func (*CopyView) ContentType ¶
type FileView ¶
type FileView struct { File io.ReadCloser Name string Size int }
File View Will Render a File to the Http Response
func (*FileView) ContentLength ¶
func (*FileView) ContentType ¶
type JSONView ¶
type JSONView struct { Content interface{} // contains filtered or unexported fields }
func (*JSONView) ContentLength ¶
func (*JSONView) ContentType ¶
Click to show internal directories.
Click to hide internal directories.