Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowMethod ¶
func AllowMethod(w http.ResponseWriter, m string, ms ...string) bool
allowMethod verifies that the given method is one of the allowed methods, and if not, it writes an error to w. A boolean is returned indicating whether or not the method is allowed.
func WriteError ¶
func WriteError(w http.ResponseWriter, r *http.Request, err error)
writeError logs and writes the given Error to the ResponseWriter If Error is an VDL error, it is rendered to the ResponseWriter Otherwise, it is assumed to be a StatusInternalServerError
Types ¶
Click to show internal directories.
Click to hide internal directories.