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

Method Write

tempfork/httprec/httprec.go:103–109  ·  view source on GitHub ↗

Write implements http.ResponseWriter. The data in buf is written to rw.Body, if not nil.

(buf []byte)

Source from the content-addressed store, hash-verified

101// Write implements http.ResponseWriter. The data in buf is written to
102// rw.Body, if not nil.
103func (rw *ResponseRecorder) Write(buf []byte) (int, error) {
104 rw.writeHeader(buf, "")
105 if rw.Body != nil {
106 rw.Body.Write(buf)
107 }
108 return len(buf), nil
109}
110
111// WriteString implements [io.StringWriter]. The data in str is written
112// to rw.Body, if not nil.

Callers

nothing calls this directly

Calls 2

writeHeaderMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected