header

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestsXTokenHeader    = "X-Token"
	RequestsAccept          = "Accept"
	RequestsContentType     = "Centent-Type"
	RequestsContentLength   = "Content-Length"
	RequestsOrigin          = "Origin"
	RequestsForwarded       = "Forwarded"
	RequestsXForwardedFor   = "X-Forwarded-For"
	RequestsXForwardedHost  = "X-Forwarded-Host"
	RequestsXForwardedProto = "X-Forwarded-Proto"
	RequestsXMessage        = "X-Message"
	RequestsXVia            = "Via"
)
View Source
const (
	ResponseXTokenHeader     = "X-Token"
	ResponseAllowOrigin      = "Access-Control-Allow-Origin"
	ResponseAllowMethods     = "Access-Control-Allow-Methods"
	ResponseAllowHeaders     = "Access-Control-Allow-Headers"
	ResponseAllowCredentials = "Access-Control-Allow-Credentials"
	ResponseExposeHeaders    = "Access-Control-Expose-Headers"
	ResponseAllowMaxAge      = "Access-Control-Max-Age"
)

Variables

Functions

func IsAllowMethods

func IsAllowMethods(method string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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