//
pkg.gl
Category
github.com/kaydxh/golang
pkg
middleware
http-middleware
http
package
0.0.131
Repository:
https://github.com/kaydxh/golang.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
7
Dependents
1
Files
89 SLOC
#
Functions
CleanPath
CleanPath middleware will clean out double slash mistakes from a user's request path.
Timeout
Timeout is a middleware that cancels ctx after a given timeout and return a 504 Gateway Timeout error to the client.
#
Variables
DefaultTimeoutHandler
DefaultTimeoutHandler is a convenient timeout handler which simply returns "504 Service timeout".