constants

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default      = "default"
	AUTH_USER_ID = "X-Auth-User-Id"
)
View Source
const (
	ContentTypeName            = "Content-Type"
	ContentTypeApplicationJSON = "application/json;charset=utf-8"
	ContentTypeTextPlain       = "text/plain;charset=utf-8"
	ContentTypeUrlencoded      = "application/x-www-form-urlencoded;charset=utf-8"
)
View Source
const (
	HeaderRequestId    = "X-Request-Id"
	HeaderRemoteHeader = "X-Remote-Addr"
	HeaderSourceIp     = "X-Src-Ip"
	HeaderSourceName   = "X-Src-Name"
)
View Source
const (
	HeaderXForwardedFor = "X-Forwarded-For"
	HeaderAuthorization = "Authorization"
	HeaderReferer       = "Referer"
)

Variables

View Source
var (
	DefaultHeaders = []string{HeaderXForwardedFor, HeaderReferer}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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