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

Function originRespEndpoint

connection/connection_test.go:199–205  ·  view source on GitHub ↗
(w ResponseWriter, status int, data []byte)

Source from the content-addressed store, hash-verified

197}
198
199func originRespEndpoint(w ResponseWriter, status int, data []byte) {
200 resp := &http.Response{
201 StatusCode: status,
202 }
203 _ = w.WriteRespHeaders(resp.StatusCode, resp.Header)
204 _, _ = w.Write(data)
205}
206
207type mockConnectedFuse struct{}
208

Callers 2

ProxyHTTPMethod · 0.85
ProxyHTTPMethod · 0.85

Calls 2

WriteRespHeadersMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected