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

Method Write

proxy/proxy_test.go:132–138  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

130}
131
132func (w *mockSSERespWriter) Write(data []byte) (int, error) {
133 newData := make([]byte, len(data))
134 copy(newData, data)
135
136 w.writeNotification <- newData
137 return len(data), nil
138}
139
140func (w *mockSSERespWriter) WriteString(str string) (int, error) {
141 return w.Write([]byte(str))

Callers 1

WriteStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected