MCPcopy Index your code
hub / github.com/coder/coder / ServeHTTP

Method ServeHTTP

enterprise/replicasync/replicasync_test.go:276–283  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

274}
275
276func (d *derpyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
277 if r.URL.Path != "/derp/latency-check" {
278 w.WriteHeader(http.StatusNotFound)
279 d.Add(1)
280 return
281 }
282 w.WriteHeader(http.StatusOK)
283}
284
285func (d *derpyHandler) requireOnlyDERPPaths(t *testing.T) {
286 require.Equal(t, uint32(0), d.Load())

Callers 15

TestIntegrationFunction · 0.45
newRestartableTestServerFunction · 0.45
RequireFeatureMWMethod · 0.45
workspaceQuotaByUserMethod · 0.45
aibridgeproxyHandlerFunction · 0.45
aibridgeHandlerFunction · 0.45
NewFunction · 0.45

Calls 2

AddMethod · 0.65
WriteHeaderMethod · 0.45

Tested by

no test coverage detected