webhelper

package
v0.0.0-...-2f43007 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: AGPL-3.0 Imports: 6 Imported by: 24

Documentation

Index

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 InternalGeneric(f func(http.ResponseWriter, *http.Request), method string, data io.Reader) *http.Response

func InternalGet

func InternalGet(f func(http.ResponseWriter, *http.Request)) []byte

func InternalHead

func InternalHead(f func(http.ResponseWriter, *http.Request))

func InternalPatch

func InternalPatch(f func(http.ResponseWriter, *http.Request), data []byte) []byte

func InternalPost

func InternalPost(f func(http.ResponseWriter, *http.Request), data []byte) []byte

func InternalPut

func InternalPut(f func(http.ResponseWriter, *http.Request), data []byte) []byte

func InternalVarsDelete

func InternalVarsDelete(f func(http.ResponseWriter, *http.Request), vars map[string]string)

func InternalVarsGeneric

func InternalVarsGeneric(f func(http.ResponseWriter, *http.Request), method string, data io.Reader, vars map[string]string) *http.Response

func InternalVarsGet

func InternalVarsGet(f func(http.ResponseWriter, *http.Request), vars map[string]string) []byte

func InternalVarsHead

func InternalVarsHead(f func(http.ResponseWriter, *http.Request), vars map[string]string)

func InternalVarsPatch

func InternalVarsPatch(f func(http.ResponseWriter, *http.Request), vars map[string]string, data []byte) []byte

func InternalVarsPost

func InternalVarsPost(f func(http.ResponseWriter, *http.Request), vars map[string]string, data []byte) []byte

func InternalVarsPut

func InternalVarsPut(f func(http.ResponseWriter, *http.Request), vars map[string]string, data []byte) []byte

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL