Documentation ¶
Index ¶
- func GetBody(r *http.Request) (e.Json, error)
- func HTTPAlert(w http.ResponseWriter, r *http.Request, message string) error
- func HTTPApp(r chi.Router, path string, root http.FileSystem)
- func HTTPError(w http.ResponseWriter, r *http.Request, statusCode int, message string) error
- func ITEM(w http.ResponseWriter, r *http.Request, statusCode int, dt e.Item) error
- func ITEMS(w http.ResponseWriter, r *http.Request, statusCode int, dt e.Items) error
- func JSON(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func Stream(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func WriteResponse(w http.ResponseWriter, statusCode int, e []byte) error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteResponse ¶ added in v0.0.52
func WriteResponse(w http.ResponseWriter, statusCode int, e []byte) error
Types ¶
Click to show internal directories.
Click to hide internal directories.