response

package
v0.0.0-...-a68da76 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyJSONBody = struct{}{}

Functions

func AddCORSHeaders

func AddCORSHeaders(w http.ResponseWriter)

func Forbidden

func Forbidden(w http.ResponseWriter, r *http.Request)

func JSON

func JSON(w http.ResponseWriter, httpStatusCode int, jsonData any)

func JSONData

func JSONData(w http.ResponseWriter, httpStatusCode int, data []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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