Documentation ¶
Index ¶
- func HTTPAccepted(w http.ResponseWriter)
- func HTTPAcceptedWithBody(w http.ResponseWriter, data interface{})
- func HTTPBad(w http.ResponseWriter, err error)
- func HTTPCreated(w http.ResponseWriter)
- func HTTPNoContent(w http.ResponseWriter)
- func HTTPNotFound(w http.ResponseWriter, err error)
- func HTTPOk(w http.ResponseWriter, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPAccepted ¶
func HTTPAccepted(w http.ResponseWriter)
HTTPAccepted writes http response code 202
func HTTPAcceptedWithBody ¶
func HTTPAcceptedWithBody(w http.ResponseWriter, data interface{})
HTTPAccepted writes http response code 202 with a json body
func HTTPCreated ¶
func HTTPCreated(w http.ResponseWriter)
HTTPCreated writes http response code 201
func HTTPNoContent ¶
func HTTPNoContent(w http.ResponseWriter)
HTTPNoContent writes http response code 204
func HTTPNotFound ¶
func HTTPNotFound(w http.ResponseWriter, err error)
HTTPNotFound writes http response code 404
func HTTPOk ¶
func HTTPOk(w http.ResponseWriter, data interface{})
HTTPOk writes http response code 200
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.