webhelper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 15

Documentation

Overview

deprecated package

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(p periHttp.PeriHttp))

func InternalGeneric

func InternalGeneric(f func(p periHttp.PeriHttp), method string, data io.Reader) *http.Response

func InternalGet

func InternalGet(f func(p periHttp.PeriHttp)) []byte

func InternalHead

func InternalHead(f func(p periHttp.PeriHttp))

func InternalPatch

func InternalPatch(f func(p periHttp.PeriHttp), data []byte) []byte

func InternalPost

func InternalPost(f func(p periHttp.PeriHttp), data []byte) []byte

func InternalPut

func InternalPut(f func(p periHttp.PeriHttp), data []byte) []byte

func InternalVarsDelete

func InternalVarsDelete(f func(p periHttp.PeriHttp), vars map[string]string)

func InternalVarsGeneric

func InternalVarsGeneric(f func(p periHttp.PeriHttp), method string, data io.Reader, vars map[string]string) *http.Response

func InternalVarsGet

func InternalVarsGet(f func(p periHttp.PeriHttp), vars map[string]string) []byte

func InternalVarsHead

func InternalVarsHead(f func(p periHttp.PeriHttp), vars map[string]string)

func InternalVarsPatch

func InternalVarsPatch(f func(p periHttp.PeriHttp), vars map[string]string, data []byte) []byte

func InternalVarsPost

func InternalVarsPost(f func(p periHttp.PeriHttp), vars map[string]string, data []byte) []byte

func InternalVarsPut

func InternalVarsPut(f func(p periHttp.PeriHttp), 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