header

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Header keys
	KeyRequestID      string = "x-request-id"
	KeyAuthorization  string = "authorization"
	KeyUserAgent      string = "user-agent"
	KeyContentType    string = "content-type"
	KeyContentAccept  string = "accept"
	KeyAcceptLanguage string = "accept-language"
	KeyCacheControl   string = "cache-control"
	KeyDeviceType     string = "x-device-type"
	KeyServiceName    string = "x-service-name"
	KeyEventType      string = "x-event-type"
	KeyEventSource    string = "x-event-source"

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

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

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

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

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