MCPcopy
hub / github.com/cloudflare/cloudflared / OkJSONResponseHandler

Function OkJSONResponseHandler

socks/connection_handler_test.go:72–77  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

70}
71
72func OkJSONResponseHandler(w http.ResponseWriter, r *http.Request) {
73 resp := successResponse{
74 Status: "ok",
75 }
76 respondWithJSON(w, resp, http.StatusOK)
77}
78
79func TestSocksConnection(t *testing.T) {
80 startTestServer(t, OkJSONResponseHandler)

Callers

nothing calls this directly

Calls 1

respondWithJSONFunction · 0.70

Tested by

no test coverage detected