MCPcopy
hub / github.com/TecharoHQ/anubis / RenderBench

Method RenderBench

lib/http.go:321–327  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

319}
320
321func (s *Server) RenderBench(w http.ResponseWriter, r *http.Request) {
322 localizer := localization.GetLocalizer(r)
323
324 templ.Handler(
325 web.Base(localizer.T("benchmarking_anubis"), web.Bench(localizer), s.policy.Impressum, localizer),
326 ).ServeHTTP(w, r)
327}
328
329func (s *Server) respondWithError(w http.ResponseWriter, r *http.Request, message, code string) {
330 s.respondWithStatus(w, r, message, code, http.StatusInternalServerError)

Callers 1

checkRulesMethod · 0.95

Calls 5

GetLocalizerFunction · 0.92
BaseFunction · 0.92
BenchFunction · 0.92
TMethod · 0.80
ServeHTTPMethod · 0.45

Tested by

no test coverage detected