// Provision sets up the handler.
Provision sets up the handler.
// Provision sets up the handler .
func (t *Handler) Provision(ctx caddy.Context) error {
	t.logger = ctx.Logger(t)
	mods, err := ctx.LoadModule(t, "HandlersRaw")
	if err != nil {
		return err
	}
	var handlers layer4.Handlers
	for _, mod := range mods.([]interface{}) {
		handlers = append(handlers, mod.(layer4.NextHandler))
	}
	t.compiledChain = handlers.Compile()
	return nil
}
func ( t * Handler ) Provision ( ctx caddy . Context ) error { t . logger = ctx . Logger ( t ) mods , err := ctx . LoadModule ( t , " " ) if err != nil { return err } var handlers layer4 . Handlers for _ , mod := range mods . ( [ ] interface { } ) { handlers = append ( handlers , mod . ( layer4 . NextHandler ) ) } t . compiledChain = handlers . Compile ( ) return nil }
Provision sets up the handler.
Provision sets up the handler .
// set up the handler chain