headername

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package headername provides constants for HTTP header names.

Index

Constants

View Source
const (
	Accept              = "Accept"
	AcceptCharset       = "Accept-Charset"
	AcceptEncoding      = "Accept-Encoding" // AcceptEncoding is handled effectively by net/http and can be disregarded here
	AcceptLanguage      = "Accept-Language"
	Allow               = "Allow"
	Authorization       = "Authorization"
	CacheControl        = "Cache-Control"
	ContentDisposition  = "Content-Disposition"
	ContentEncoding     = "Content-Encoding"
	ContentLanguage     = "Content-Language"
	ContentLength       = "Content-Length"
	ContentType         = "Content-Type"
	Cookie              = "Cookie"
	ETag                = "ETag"
	Expires             = "Expires"
	SetCookie           = "Set-Cookie"
	IfModifiedSince     = "If-Modified-Since"
	IfNoneMatch         = "If-None-Match"
	LastModified        = "Last-Modified"
	Location            = "Location"
	Pragma              = "Pragma"
	Upgrade             = "Upgrade"
	Vary                = "Vary"
	WWWAuthenticate     = "WWW-Authenticate"
	XForwardedFor       = "X-Forwarded-For"
	XForwardedProto     = "X-Forwarded-Proto"
	XForwardedProtocol  = "X-Forwarded-Protocol"
	XForwardedSsl       = "X-Forwarded-Ssl"
	XUrlScheme          = "X-Url-Scheme"
	XHTTPMethodOverride = "X-HTTP-Method-Override"
	XRealIP             = "X-Real-IP"
	XRequestID          = "X-Request-ID"
	XCorrelationID      = "X-Correlation-ID"
	XRequestedWith      = "X-Requested-With" // XRequestedWith defines the header strings used for XHR.
	Server              = "Server"
	Origin              = "Origin"
)

Variables

This section is empty.

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