Documentation
¶
Index ¶
- func JSON(w http.ResponseWriter, statusCode int, obj any) error
- func NoContent(w http.ResponseWriter) error
- func Range(w http.ResponseWriter, statusCode int, contentType string, r io.ReadSeeker) error
- func RawData(w http.ResponseWriter, statusCode int, contentType string, body []byte) error
- func Redirect(w http.ResponseWriter, r *http.Request, status int, url string) error
- func Stream(w http.ResponseWriter, statusCode int, contentType string, r io.Reader) error
- func Text(w http.ResponseWriter, statusCode int, msg string) error
- type APIError
- type H
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoContent ¶
func NoContent(w http.ResponseWriter) error
func Range ¶
func Range(w http.ResponseWriter, statusCode int, contentType string, r io.ReadSeeker) error
Types ¶
type APIError ¶
func NewAPIError ¶
Click to show internal directories.
Click to hide internal directories.