MCPcopy Create free account
hub / github.com/easyp-tech/server / badRequest

Method badRequest

internal/connect/commits.go:802–804  ·  view source on GitHub ↗

badRequest writes a 400 response with the given message and any extra structured log attributes. Use when the client sent a request we cannot parse or that fails our own validation rules.

(r *http.Request, w http.ResponseWriter, msg string, attrs ...slog.Attr)

Source from the content-addressed store, hash-verified

800// structured log attributes. Use when the client sent a request we cannot
801// parse or that fails our own validation rules.
802func (h *commitServiceHandler) badRequest(r *http.Request, w http.ResponseWriter, msg string, attrs ...slog.Attr) {
803 h.logHandlerError(r, w, msg, http.StatusBadRequest, attrs...)
804}
805
806// upstreamError writes a 502 response with the given message and any extra
807// structured log attributes. Use when the request was well-formed but

Callers 5

ServeGetOwnersMethod · 0.95
ServeHTTPMethod · 0.95
ServeGraphMethod · 0.95
ServeDownloadMethod · 0.95
ServeGetModulesMethod · 0.95

Calls 1

logHandlerErrorMethod · 0.95

Tested by

no test coverage detected