MCPcopy Create free account
hub / github.com/github/copilot-sdk / Write

Method Write

go/internal/jsonrpc2/frame.go:86–92  ·  view source on GitHub ↗

Write sends a single frame with a Content-Length header.

(data []byte)

Source from the content-addressed store, hash-verified

84
85// Write sends a single frame with a Content-Length header.
86func (w *headerWriter) Write(data []byte) error {
87 if _, err := fmt.Fprintf(w.out, "Content-Length: %d\r\n\r\n", len(data)); err != nil {
88 return err
89 }
90 _, err := w.out.Write(data)
91 return err
92}

Callers 4

sendMessageMethod · 0.95
drainBodyFunction · 0.45
SendRequestMessageMethod · 0.45
startFakeUpstreamsFunction · 0.45

Calls

no outgoing calls

Tested by 1

startFakeUpstreamsFunction · 0.36