MCPcopy Create free account
hub / github.com/caddyserver/caddy / CaddyModule

Method CaddyModule

modules/caddyhttp/headers/headers.go:49–54  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

47
48// CaddyModule returns the Caddy module information.
49func (Handler) CaddyModule() caddy.ModuleInfo {
50 return caddy.ModuleInfo{
51 ID: "http.handlers.headers",
52 New: func() caddy.Module { return new(Handler) },
53 }
54}
55
56// Provision sets up h's configuration.
57func (h *Handler) Provision(ctx caddy.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected