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

Method Read

modules/caddyhttp/responsewriter.go:290–294  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

288}
289
290func (hc *hijackedConn) Read(p []byte) (int, error) {
291 n, err := hc.Conn.Read(p)
292 hc.updateReadSize(n)
293 return n, err
294}
295
296func (hc *hijackedConn) WriteTo(w io.Writer) (int64, error) {
297 n, err := io.Copy(w, hc.Conn)

Callers

nothing calls this directly

Calls 1

updateReadSizeMethod · 0.95

Tested by

no test coverage detected