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