package
0.0.0-20230919111523-49f87eb257dc
Repository: https://github.com/likearthian/go-http.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CorsAllowCredentials indicates whether or not the response to the request can be exposed when the credentials flag is true.
CorsAllowHeaders defines a list of request headers that can be used when making the actual request.
CorsAllowMethods defines a list methods allowed when accessing the resource.
CorsAllowOrigin defines a list of origins that may access the resource.
CorsMaxAge indicates how long (in seconds) the results of a preflight request can be cached.
No description provided by the author
No description provided by the author
No description provided by the author
PopulateRequestContext is a RequestFunc that populates several values into the context from the HTTP request.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

ContextKeyRequestAccept is populated in the context by PopulateRequestContext.
ContextKeyRequestAcceptEncoding is populated in the context by PopulateRequestContext.
ContextKeyRequestAuthorization is populated in the context by PopulateRequestContext.
No description provided by the author
ContextKeyRequestHost is populated in the context by PopulateRequestContext.
ContextKeyRequestMethod is populated in the context by PopulateRequestContext.
ContextKeyRequestPath is populated in the context by PopulateRequestContext.
ContextKeyRequestProto is populated in the context by PopulateRequestContext.
ContextKeyRequestReferer is populated in the context by PopulateRequestContext.
ContextKeyRequestRemoteAddr is populated in the context by PopulateRequestContext.
No description provided by the author
ContextKeyRequestURI is populated in the context by PopulateRequestContext.
ContextKeyRequestUserAgent is populated in the context by PopulateRequestContext.
ContextKeyRequestXForwardedFor is populated in the context by PopulateRequestContext.
ContextKeyRequestXForwardedProto is populated in the context by PopulateRequestContext.
ContextKeyRequestXRequestID is populated in the context by PopulateRequestContext.
ContextKeyRequestXTraceID is populated in the context by PopulateRequestContext.
ContextKeyResponseHeaders is populated in the context whenever a ServerFinalizerFunc is specified.
ContextKeyResponseSize is populated in the context whenever a ServerFinalizerFunc is specified.

# Variables

DefaultCORSConfig is the default CORS middleware config.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author