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

Method CaddyModule

modules/caddyhttp/invoke.go:38–43  ·  view source on GitHub ↗

CaddyModule returns the Caddy module information.

()

Source from the content-addressed store, hash-verified

36
37// CaddyModule returns the Caddy module information.
38func (Invoke) CaddyModule() caddy.ModuleInfo {
39 return caddy.ModuleInfo{
40 ID: "http.handlers.invoke",
41 New: func() caddy.Module { return new(Invoke) },
42 }
43}
44
45func (invoke *Invoke) ServeHTTP(w http.ResponseWriter, r *http.Request, next Handler) error {
46 server := r.Context().Value(ServerCtxKey).(*Server)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected