MCPcopy
hub / github.com/perkeep/perkeep / InvalidMethodError

Struct InvalidMethodError

internal/httputil/httputil.go:194–194  ·  view source on GitHub ↗

An InvalidMethodError is returned when an HTTP handler is invoked with an unsupported method.

Source from the content-addressed store, hash-verified

192// An InvalidMethodError is returned when an HTTP handler is invoked
193// with an unsupported method.
194type InvalidMethodError struct{}
195
196func (InvalidMethodError) Error() string { return "invalid method" }
197func (InvalidMethodError) HTTPCode() int { return http.StatusMethodNotAllowed }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected