Documentation
¶
Index ¶
- func BadRequest(w http.ResponseWriter, r *http.Request)
- func Delete(h http.HandlerFunc) http.HandlerFunc
- func Get(h http.HandlerFunc) http.HandlerFunc
- func NotFound(w http.ResponseWriter, r *http.Request)
- func NotImplemented(w http.ResponseWriter, r *http.Request)
- func Only(method string, path string, h http.HandlerFunc) (string, http.HandlerFunc)
- func Post(h http.HandlerFunc) http.HandlerFunc
- func Put(h http.HandlerFunc) http.HandlerFunc
- func ReadJSON(w http.ResponseWriter, r *http.Request, ptr any)
- func ReadRaw(w http.ResponseWriter, r *http.Request) ([]byte, string)
- func ReadXML(w http.ResponseWriter, r *http.Request, ptr any)
- func WriteErrorJSON(w http.ResponseWriter, r *http.Request, code int, err error)
- func WriteJSON(w http.ResponseWriter, r *http.Request, code int, data any)
- func WriteRaw(w http.ResponseWriter, r *http.Request, code int, data []byte)
- func WriteXML(w http.ResponseWriter, r *http.Request, code int, data any)
- type ErrJSON
- type JSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, r *http.Request)
func Delete ¶
func Delete(h http.HandlerFunc) http.HandlerFunc
func Get ¶
func Get(h http.HandlerFunc) http.HandlerFunc
func NotImplemented ¶
func NotImplemented(w http.ResponseWriter, r *http.Request)
func Only ¶
func Only(method string, path string, h http.HandlerFunc) (string, http.HandlerFunc)
func Post ¶
func Post(h http.HandlerFunc) http.HandlerFunc
func Put ¶
func Put(h http.HandlerFunc) http.HandlerFunc
func WriteErrorJSON ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.