Documentation ¶
Index ¶
- func BinaryResponse(w http.ResponseWriter, httpStatusCode int, data []byte)
- func EmptyResponse(w http.ResponseWriter, httpStatusCode int)
- func InternalDelete(f func(http.ResponseWriter, *http.Request))
- func InternalGeneric(f func(http.ResponseWriter, *http.Request), method string, data io.Reader) *http.Response
- func InternalGet(f func(http.ResponseWriter, *http.Request)) []byte
- func InternalHead(f func(http.ResponseWriter, *http.Request))
- func InternalPatch(f func(http.ResponseWriter, *http.Request), data []byte) []byte
- func InternalPost(f func(http.ResponseWriter, *http.Request), data []byte) []byte
- func InternalPut(f func(http.ResponseWriter, *http.Request), data []byte) []byte
- func InternalVarsDelete(f func(http.ResponseWriter, *http.Request), vars map[string]string)
- func InternalVarsGeneric(f func(http.ResponseWriter, *http.Request), method string, data io.Reader, ...) *http.Response
- func InternalVarsGet(f func(http.ResponseWriter, *http.Request), vars map[string]string) []byte
- func InternalVarsHead(f func(http.ResponseWriter, *http.Request), vars map[string]string)
- func InternalVarsPatch(f func(http.ResponseWriter, *http.Request), vars map[string]string, ...) []byte
- func InternalVarsPost(f func(http.ResponseWriter, *http.Request), vars map[string]string, ...) []byte
- func InternalVarsPut(f func(http.ResponseWriter, *http.Request), vars map[string]string, ...) []byte
- func JsonResponse(w http.ResponseWriter, httpStatusCode int, jsonObject any)
- func TextResponse[T []byte | string](w http.ResponseWriter, httpStatusCode int, textMessage T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryResponse ¶
func BinaryResponse(w http.ResponseWriter, httpStatusCode int, data []byte)
func EmptyResponse ¶
func EmptyResponse(w http.ResponseWriter, httpStatusCode int)
func InternalDelete ¶
func InternalDelete(f func(http.ResponseWriter, *http.Request))
func InternalGeneric ¶
func InternalGet ¶
func InternalGet(f func(http.ResponseWriter, *http.Request)) []byte
func InternalHead ¶
func InternalHead(f func(http.ResponseWriter, *http.Request))
func InternalPatch ¶
func InternalPost ¶
func InternalPut ¶
func InternalVarsDelete ¶
func InternalVarsGeneric ¶
func InternalVarsGet ¶
func InternalVarsHead ¶
func InternalVarsPatch ¶
func InternalVarsPost ¶
func InternalVarsPut ¶
func JsonResponse ¶
func JsonResponse(w http.ResponseWriter, httpStatusCode int, jsonObject any)
func TextResponse ¶
func TextResponse[T []byte | string](w http.ResponseWriter, httpStatusCode int, textMessage T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.