MCPcopy
hub / github.com/stretchr/testify / httpOK

Function httpOK

assert/http_assertions_test.go:11–13  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

9)
10
11func httpOK(w http.ResponseWriter, r *http.Request) {
12 w.WriteHeader(http.StatusOK)
13}
14
15func httpReadBody(w http.ResponseWriter, r *http.Request) {
16 _, _ = io.Copy(io.Discard, r.Body)

Callers

nothing calls this directly

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected