MCPcopy
hub / github.com/linkedin/Burrow / ServeHTTP

Method ServeHTTP

core/internal/httpserver/coordinator.go:284–286  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

282type defaultHandler struct{}
283
284func (handler *defaultHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
285 http.Error(w, "{\"error\":true,\"message\":\"invalid request type\",\"result\":{}}", http.StatusNotFound)
286}
287
288func (hc *Coordinator) handleAdmin(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
289 // Add CORS header, if configured

Calls 1

ErrorMethod · 0.80