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

Method updateReadSize

modules/caddyhttp/responsewriter.go:284–288  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

282}
283
284func (hc *hijackedConn) updateReadSize(n int) {
285 if hc.rr.readSize != nil {
286 *hc.rr.readSize += n
287 }
288}
289
290func (hc *hijackedConn) Read(p []byte) (int, error) {
291 n, err := hc.Conn.Read(p)

Callers 3

ReadMethod · 0.95
WriteToMethod · 0.95
HijackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected