Documentation
¶
Index ¶
Constants ¶
View Source
const ( Accept = "Accept" AcceptCharset = "Accept-Charset" AcceptEncoding = "Accept-Encoding" AcceptLanguage = "Accept-Language" Authorization = "Authorization" CacheControl = "Cache-Control" ContentLength = "Content-Length" ContentMD5 = "Content-MD5" ContentType = "Content-Type" DoNotTrack = "DNT" IfMatch = "If-Match" IfModifiedSince = "If-Modified-Since" IfNoneMatch = "If-None-Match" IfRange = "If-Range" IfUnmodifiedSince = "If-Unmodified-Since" MaxForwards = "Max-Forwards" ProxyAuthorization = "Proxy-Authorization" Pragma = "Pragma" Range = "Range" Referer = "Referer" UserAgent = "User-Agent" TE = "TE" Via = "Via" Warning = "Warning" Cookie = "Cookie" Origin = "Origin" AcceptDatetime = "Accept-Datetime" XRequestedWith = "X-Requested-With" AccessControlAllowOrigin = "Access-Control-Allow-Origin" AccessControlAllowMethods = "Access-Control-Allow-Methods" AccessControlAllowHeaders = "Access-Control-Allow-Headers" AccessControlAllowCredentials = "Access-Control-Allow-Credentials" AccessControlExposeHeaders = "Access-Control-Expose-Headers" AccessControlMaxAge = "Access-Control-Max-Age" AccessControlRequestMethod = "Access-Control-Request-Method" AccessControlRequestHeaders = "Access-Control-Request-Headers" AcceptPatch = "Accept-Patch" AcceptRanges = "Accept-Ranges" Allow = "Allow" ContentEncoding = "Content-Encoding" ContentLanguage = "Content-Language" ContentLocation = "Content-Location" ContentDisposition = "Content-Disposition" ContentRange = "Content-Range" ETag = "ETag" Expires = "Expires" LastModified = "Last-Modified" Link = "Link" Location = "Location" P3P = "P3P" ProxyAuthenticate = "Proxy-Authenticate" Refresh = "Refresh" RetryAfter = "Retry-After" Server = "Server" SetCookie = "Set-Cookie" StrictTransportSecurity = "Strict-Transport-Security" TransferEncoding = "Transfer-Encoding" Upgrade = "Upgrade" Vary = "Vary" WWWAuthenticate = "WWW-Authenticate" Depth = "Depth" )
HTTP headers.
Variables ¶
View Source
var ( HeaderAsertoRequestID = CtxKey(textproto.CanonicalMIMEHeaderKey("Aserto-Request-Id")) HeaderAsertoRequestIDLowercase = CtxKey(strings.ToLower(string(HeaderAsertoRequestID))) )
Functions ¶
func ContextWithRequestID ¶
func ExtractRequestID ¶
func IsValidUUID ¶
func KnownContextValueStrings ¶
KnownContextValueStrings is the same as KnownContextValues, but uses string keys (useful for logging).
Types ¶
Click to show internal directories.
Click to hide internal directories.