httpheader

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package httpheader provides some common http header names.

Index

Constants

View Source
const (
	UserAgent = "User-Agent"
	UserAuth  = "Authorization"

	Accept = "Accept"
	Cookie = "Cookie"
	// Upgrade header. check websocket:
	// 	header["Connection"] == "Upgrade" and header["Upgrade"] == "websocket"
	Upgrade = "Upgrade"

	AcceptEnc   = "Accept-Encoding"
	ContentType = "Content-Type"
	Connection  = "Connection"

	XRealIP = "X-Real-IP"

	XForwardedFor   = "X-Forwarded-For"
	XForwardedHost  = "X-Forwarded-Host"
	XForwardedProto = "X-Forwarded-Proto"

	// XRequestedWith header. check ajax: header["X-Requested-With"] == XMLHttpRequest
	XRequestedWith = "X-Requested-With"
)

some common http header names

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