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

Method CaddyModule

modules/caddyhttp/staticresp.go:125–130  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

123
124// CaddyModule returns the Caddy module information.
125func (StaticResponse) CaddyModule() caddy.ModuleInfo {
126 return caddy.ModuleInfo{
127 ID: "http.handlers.static_response",
128 New: func() caddy.Module { return new(StaticResponse) },
129 }
130}
131
132// UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax:
133//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected