middleware

package
v0.0.0-...-eb76b16 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CT_JSON = "application/json"
	CT_FORM = "application/x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

func EnforceContentType

func EnforceContentType(next http.Handler) http.Handler

func NewCorsConfig

func NewCorsConfig(origins string, headers string, debug bool) *cors.Cors

func NewToken

func NewToken(token string) *authorization

Types

This section is empty.

Jump to

Keyboard shortcuts

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