Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderContentLength string = "Content-Length" HeaderContentType string = "Content-Type" HeaderETag string = "ETag" HeaderIfNoneMatch string = "If-None-Match" )
View Source
const ( ContentTypeJSON string = "application/json" ContentTypeText string = "text/plain" )
Variables ¶
This section is empty.
Functions ¶
func DefaultResponse ¶
func DefaultResponse(w http.ResponseWriter, r *http.Request, status int)
Types ¶
type ErrorHandler ¶
type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error)
Click to show internal directories.
Click to hide internal directories.