mime

package
v0.0.0-...-608e6a2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeJson    = "application/json"
	ContentTypeJsonBom = "application/json; charset=UTF-8"
)
View Source
const (
	HeaderKeyTraceID          = "X-Trace-Id"
	HeaderKeyClientIP         = "X-Client-Ip"
	HeaderKeyRequestIP        = "X-Request-Ip"
	HeaderKeyContentType      = "Content-Type"
	HeaderKeyUserAgent        = "User-Agent"
	HeaderKeyRequestURIPath   = "Request-URI-Path"
	HeaderKeyRequestURIQuery  = "Request-URI-Query"
	HeaderKeyRequestURIMethod = "Request-URI-Method"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceInfo

type TraceInfo struct {
	TraceID         string `yaml:"X-Trace-Id" json:"X-Trace-Id"`
	ClientIP        string `yaml:"X-Client-Ip" json:"X-Client-Ip"`
	RequestIP       string `yaml:"X-Request-Ip" json:"X-Request-Ip"`
	ContentType     string `yaml:"Content-Type" json:"Content-Type"`
	UserAgent       string `yaml:"User-Agent" json:"User-Agent"`
	RequestURIPath  string `yaml:"Request-URI-Path" json:"Request-URI-Path"`
	RequestURIQuery string `yaml:"Request-URI-Query" json:"Request-URI-Query"`
}

Jump to

Keyboard shortcuts

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