(w http.ResponseWriter, r *http.Request)
| 319 | } |
| 320 | |
| 321 | func (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 | |
| 329 | func (s *Server) respondWithError(w http.ResponseWriter, r *http.Request, message, code string) { |
| 330 | s.respondWithStatus(w, r, message, code, http.StatusInternalServerError) |
no test coverage detected