http

package
v0.0.0-...-bf83fb3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvAccessControlAllowOrigin for setting access control allow origin. Wildcard
	// (i.e. '*') is not allowed when using 'withCredentials', which is required
	// in order for the JS to use cookies
	EnvAccessControlAllowOrigin = "ACCESS_CONTROL_ALLOW_ORIGIN"
)

Variables

This section is empty.

Functions

func CORS

func CORS(next http.Handler) http.Handler

CORS add CORS headers to the response

func GZIP

func GZIP(next http.Handler) http.Handler

GZIP compress the response

func NewServeMux

func NewServeMux() (sMux *http.ServeMux, err error)

NewServeMux returns a new http.ServeMux with routes supported by the API

Types

This section is empty.

Jump to

Keyboard shortcuts

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