Documentation ¶
Index ¶
- func BadRequest(err error, w http.ResponseWriter)
- func HTTP(handler http.Handler, addr string, timeout time.Duration) error
- func HTTPS(handler http.Handler, addr string, timeout time.Duration, host, certDir string) error
- func InternalServerError(err error, w http.ResponseWriter)
- func ReadJSONBody(w http.ResponseWriter, r *http.Request, n int64, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(err error, w http.ResponseWriter)
func InternalServerError ¶
func InternalServerError(err error, w http.ResponseWriter)
func ReadJSONBody ¶
ReadJSONBody reads an HTTP body as JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.