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

Method CaddyModule

modules/caddyhttp/staticerror.go:47–52  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

45
46// CaddyModule returns the Caddy module information.
47func (StaticError) CaddyModule() caddy.ModuleInfo {
48 return caddy.ModuleInfo{
49 ID: "http.handlers.error",
50 New: func() caddy.Module { return new(StaticError) },
51 }
52}
53
54// UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax:
55//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected