MCPcopy Index your code
hub / github.com/perkeep/perkeep / ErrorRouting

Function ErrorRouting

internal/httputil/httputil.go:41–44  ·  view source on GitHub ↗
(rw http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

39}
40
41func ErrorRouting(rw http.ResponseWriter, req *http.Request) {
42 http.Error(rw, "Handlers wired up wrong; this path shouldn't be hit", 500)
43 log.Printf("Internal routing error on %q", req.URL.Path)
44}
45
46func BadRequestError(rw http.ResponseWriter, errorMessage string, args ...interface{}) {
47 rw.WriteHeader(http.StatusBadRequest)

Callers 4

ServeHTTPMethod · 0.92
serveThumbnailMethod · 0.92
serveFileTreeMethod · 0.92
serveClosureMethod · 0.92

Calls 2

PrintfMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected