package
0.24.2
Repository: https://github.com/nickhstr/goweb.git
Documentation: pkg.go.dev

# Functions

AddCacheHeader adds a response header to indicate the resopnse is cached.
AppHeaders adds more app-specific headers to the response.
Auth handles authenticating requests.
Cache middleware creator offers caching of responses.
No description provided by the author
Compose adds middleware handlers to a given handler.
ContextFromRequest returns a new context, which may or may not add a "no cache" flag.
Etag middleware sets the ETag header.
Logger outputs general information about requests.
NewCacheWriter creates a new CacheWriter.
NewEtagWriter returns an EtagWriter with a wrapped ResponseWriter.
Recover middleware recovers from panics, and logs the error.
Secure creates the security middleware.
SecureDefault is similar to Secure, but provides sane security defaults, without requiring options to be provided.
SetHeader adds header key/values to the response.
Timeout adds a timeout to each request's context.

# Structs

AppHeaders holds app specific header values.
AuthOptions holds the necessary values for the authentication middleware.
No description provided by the author
CacheOptions are the configurable options for the cache middleware.
CacheWriter is an enhanced http.ResponseWriter.
EtagWriter provides a ResponseWriter which holds info needed for verifying etags.
LoggerOptions holds all logger middleware options.

# Type aliases

Middleware aliases the function type for all middleware.