Documentation
¶
Overview ¶
Package httputil provides HTTP utilities for LocalGo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondError ¶
func RespondError(w http.ResponseWriter, statusCode int, message string)
RespondError sends an error response
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, statusCode int, data interface{})
RespondJSON sends a JSON response
func RespondOK ¶
func RespondOK(w http.ResponseWriter)
RespondOK sends an OK response with no content
Types ¶
Click to show internal directories.
Click to hide internal directories.