MCPcopy
hub / github.com/caddyserver/caddy / WriteTo

Method WriteTo

modules/caddyhttp/responsewriter.go:296–300  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

294}
295
296func (hc *hijackedConn) WriteTo(w io.Writer) (int64, error) {
297 n, err := io.Copy(w, hc.Conn)
298 hc.updateReadSize(int(n))
299 return n, err
300}
301
302func (hc *hijackedConn) Write(p []byte) (int, error) {
303 n, err := hc.Conn.Write(p)

Callers 5

NewTransportMethod · 0.80
writeRecordMethod · 0.80
FlushMethod · 0.80
serveBrowseMethod · 0.80

Calls 1

updateReadSizeMethod · 0.95

Tested by 1