MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / ServeHTTP

Method ServeHTTP

proxy/proxy_test.go:403–406  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

401type mockAPI struct{}
402
403func (ma mockAPI) ServeHTTP(w http.ResponseWriter, r *http.Request) {
404 w.WriteHeader(http.StatusCreated)
405 _, _ = w.Write([]byte("Created"))
406}
407
408type errorOriginTransport struct{}
409

Callers 2

proxyLocalRequestMethod · 0.45
RoundTripMethod · 0.45

Calls 2

WriteMethod · 0.65
WriteHeaderMethod · 0.45

Tested by

no test coverage detected