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

Method Write

coderd/aibridged/transport.go:182–187  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

180}
181
182func (w *pipeResponseWriter) Write(p []byte) (int, error) {
183 // net/http semantics: an implicit 200 OK on first Write if the handler
184 // did not call WriteHeader explicitly.
185 w.WriteHeader(http.StatusOK)
186 return w.body.Write(p)
187}
188
189// Flush is a no-op: pipe writes are already synchronous with the reader, so
190// each Write is observed as soon as the reader consumes it. We satisfy

Callers

nothing calls this directly

Calls 2

WriteHeaderMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected