Documentation ¶
Index ¶
- Variables
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuringBodyFilter = errors.New("error during body filter")
Functions ¶
func BodyFilter ¶
func BodyFilter(next http.Handler, conf []config.BodyFilterConfig) kaspHttp.Middleware
func BodyFilterMux ¶
func BodyFilterMux(conf []config.BodyFilterConfig) kaspHttp.MuxMiddleware
func CORS ¶
func CORS(next http.Handler, conf CORSConfig) kaspHttp.Middleware
func CORSMux ¶
func CORSMux(conf CORSConfig) kaspHttp.MuxMiddleware
func MatchConfig ¶
func MatchConfig(r *http.Request, conf []config.BodyFilterConfig) (config.BodyFilterConfig, bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.