Versions in this module Expand all Collapse all v0 v0.1.0 Mar 29, 2024 Changes in this version + var ErrDuringBodyFilter = errors.New("error during body filter") + func BodyFilter(next http.Handler, conf []config.BodyFilterConfig) kaspHttp.Middleware + func BodyFilterMux(conf []config.BodyFilterConfig) kaspHttp.MuxMiddleware + func CORS(next http.Handler, conf CORSConfig) kaspHttp.Middleware + func CORSMux(conf CORSConfig) kaspHttp.MuxMiddleware + func Filter(body, filteredBody map[string]any) error + func MatchConfig(r *http.Request, conf []config.BodyFilterConfig) (config.BodyFilterConfig, bool) + type CORSConfig struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string