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

Method Write

devtools/devtools.go:316–326  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

314}
315
316func (w *pipeResponseWriter) Write(b []byte) (int, error) {
317 if !w.wroteHeader {
318 w.WriteHeader(http.StatusOK)
319 }
320
321 w.hasContent = true
322 if !w.sentResponse {
323 w.sendResponse()
324 }
325 return w.pw.Write(b)
326}
327
328func (w *pipeResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
329 if w.wasHijacked {

Callers 15

boxFunction · 0.80
LoopMethod · 0.80
listenAbstractStableFunction · 0.80
sendMethod · 0.80
doInsertFunction · 0.80
handleQueryMethod · 0.80
runQueryMethod · 0.80
sendMethod · 0.80
panicGuardMethod · 0.80
handleOpenMethod · 0.80
proxyHTTP2Method · 0.80
SendMethod · 0.80

Calls 2

WriteHeaderMethod · 0.95
sendResponseMethod · 0.95

Tested by

no test coverage detected