Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gorilla/handlers
/ types & classes
Types & classes
17 in github.com/gorilla/handlers
⨍
Functions
125
◇
Types & classes
17
FuncType
CORSOption
CORSOption represents a functional option for configuring the CORS middleware.
cors.go:10
FuncType
LogFormatter
LogFormatter gives the signature of the formatter function passed to CustomLoggingHandler.
logging.go:31
Struct
LogFormatterParams
Logging LogFormatterParams is the structure any formatter will be handed when time to log comes.
logging.go:22
TypeAlias
MethodHandler
MethodHandler is an http.Handler that dispatches to a handler whose key in the MethodHandler's map matches the name of the HTTP request's method, eg:
handlers.go:26
FuncType
OriginValidator
OriginValidator takes an origin string and returns whether or not that origin is allowed.
cors.go:26
Interface
RecoveryHandlerLogger
RecoveryHandlerLogger is an interface used by the recovering handler to print logs.
recovery.go:10
FuncType
RecoveryOption
RecoveryOption provides a functional approach to define configuration for a handler; such as setting the logging whether or not to print stack traces
recovery.go:23
Struct
canonical
canonical.go:9
Struct
compressResponseWriter
compress.go:19
Struct
cors
cors.go:12
Interface
flusher
compress.go:43
Struct
fullyFeaturedResponseWriter
compress_test.go:222
Struct
headerTable
proxy_headers_test.go:9
Struct
loggingHandler
loggingHandler is the http.Handler implementation for LoggingHandlerTo and its friends
logging.go:36
Struct
paltryResponseWriter
compress_test.go:271
Struct
recoveryHandler
recovery.go:14
Struct
responseLogger
responseLogger is wrapper of http.ResponseWriter that keeps track of its HTTP status code and body size.
handlers.go:48