Documentation ¶
Index ¶
- func AutoOptions(next http.HandlerFunc) http.HandlerFunc
- func BasicAuth(user string, pass string, logger log.Logger, next http.HandlerFunc) http.HandlerFunc
- func CORS(allowedMethods []string, allowedOrigins []string, headers []string, ...) http.HandlerFunc
- func DebugLog(log log.Logger, next http.HandlerFunc) http.HandlerFunc
- func ExtraHeaders(headers map[string]string, next http.HandlerFunc) http.HandlerFunc
- func GZip(next http.HandlerFunc) http.HandlerFunc
- func HeaderAuth(authHeaders map[string]string, logger log.Logger, next http.HandlerFunc) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoOptions ¶
func AutoOptions(next http.HandlerFunc) http.HandlerFunc
func BasicAuth ¶
func BasicAuth(user string, pass string, logger log.Logger, next http.HandlerFunc) http.HandlerFunc
func CORS ¶
func CORS(allowedMethods []string, allowedOrigins []string, headers []string, authHeaders []string, originRegexConfig *config.OriginRegexConfig, next http.HandlerFunc) http.HandlerFunc
func DebugLog ¶
func DebugLog(log log.Logger, next http.HandlerFunc) http.HandlerFunc
func ExtraHeaders ¶
func ExtraHeaders(headers map[string]string, next http.HandlerFunc) http.HandlerFunc
func GZip ¶
func GZip(next http.HandlerFunc) http.HandlerFunc
func HeaderAuth ¶
func HeaderAuth(authHeaders map[string]string, logger log.Logger, next http.HandlerFunc) http.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.