MCPcopy Create free account
hub / github.com/brimdata/super / ServeHTTP

Method ServeHTTP

service/core.go:214–221  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

212}
213
214func (c *Core) ServeHTTP(w http.ResponseWriter, r *http.Request) {
215 var rm mux.RouteMatch
216 if c.routerAux.Match(r, &rm) {
217 rm.Handler.ServeHTTP(w, r)
218 return
219 }
220 c.routerAPI.ServeHTTP(w, r)
221}
222
223func (c *Core) publishEvent(w *ResponseWriter, name string, data any) {
224 marshaler := sup.NewBSUPMarshaler()

Callers 3

requestIDMiddlewareFunction · 0.80
accessLogMiddlewareFunction · 0.80
panicCatchMiddlewareFunction · 0.80

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected