Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CtxKey ¶
type CtxKey int
const ( // RequestMethodKey is the request context key used to store r.Method created by // the PopulateRequestContext middleware. RequestMethodKey CtxKey = iota + 1 // RequestURIKey is the request context key used to store r.RequestURI created by // the PopulateRequestContext middleware. RequestURIKey // RequestPathKey is the request context key used to store r.URL.Path created by // the PopulateRequestContext middleware. RequestPathKey // RequestProtoKey is the request context key used to store r.Proto created by // the PopulateRequestContext middleware. RequestProtoKey // RequestHostKey is the request context key used to store r.Host created by // the PopulateRequestContext middleware. RequestHostKey // RequestRemoteAddrKey is the request context key used to store r.RemoteAddr // created by the PopulateRequestContext middleware. RequestRemoteAddrKey // RequestXForwardedForKey is the request context key used to store the // X-Forwarded-For header created by the PopulateRequestContext middleware. RequestXForwardedForKey // RequestAuthorizationKey is the request context key used to store the // Authorization header created by the PopulateRequestContext middleware. RequestAuthorizationKey // RequestUserAgentKey is the request context key used to store the User-Agent // header created by the PopulateRequestContext middleware. RequestUserAgentKey )
Click to show internal directories.
Click to hide internal directories.