header

package
v0.0.36-pre5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// Headers keys
	KeyRequestID      = "x-request-id"
	KeyAuthorization  = "authorization"
	KeyUserAgent      = "user-agent"
	KeyContentType    = "content-type"
	KeyContentAccept  = "accept"
	KeyAcceptLanguage = "accept-language"
	KeyCacheControl   = "cache-control"

	// Content type.Specifying the payload in the request
	ContentTypeJSON = "application/json"
	ContentTypeXML  = "application/xml"
	ContentTypeForm = "application/x-www-form-urlencoded"
	ContentTypeHTML = "text/html"

	// Accepting media. Specifying the types of requested media (in the response)
	// See here: https://en.wikipedia.org/wiki/Content_negotiation
	MediaTextPlain = "text/plain"
	MediaTextHTML  = "text/html"
	MediaTextCSV   = "text/csv"
	MediaTextXML   = "text/xml"

	MediaImageGIF  = "image/gif"
	MediaImageJPEG = "image/jpeg"
	MediaImagePNG  = "image/png"
	MediaImageWEBP = "image/webp"

	// Cache control
	CacheControlNoCache = "no-cache"
	CacheControlNoStore = "no-store"

	ContentEncodingUTF8 = "UTF-8"
)

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