MCPcopy Create free account
hub / github.com/pace/bricks / ServeHTTP

Method ServeHTTP

maintenance/util/ignore_prefix_handler_test.go:50–52  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

48}
49
50func (t *testHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
51 w.WriteHeader(t.statusCode)
52}
53
54func handlerWithStatusCode(statusCode int) http.Handler {
55 return &testHandler{statusCode: statusCode}

Callers 1

Calls 1

WriteHeaderMethod · 0.45

Tested by

no test coverage detected