headers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessControlAllowOrigin      = "Access-Control-Allow-Origin"
	AccessControlAllowCredentials = "Access-Control-Allow-Credentials"

	AcceptLanguage = "Accept-Language"

	// Custom headers.
	XForwardedFor = "X-Forwarded-For" // https://en.wikipedia.org/wiki/X-Forwarded-For

	CacheControl    = "Cache-Control"
	ContentLength   = "Content-Length"
	ContentType     = "Content-Type"
	ContentEncoding = "Content-Encoding"
)

Variables

This section is empty.

Functions

func GetClientIp

func GetClientIp(r *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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