MCPcopy
hub / github.com/valyala/fasthttp / Read

Method Read

http.go:1563–1565  ·  view source on GitHub ↗

Read reads response (including body) from the given r. io.EOF is returned if r is closed before reading the first header byte.

(r *bufio.Reader)

Source from the content-addressed store, hash-verified

1561//
1562// io.EOF is returned if r is closed before reading the first header byte.
1563func (resp *Response) Read(r *bufio.Reader) error {
1564 return resp.ReadLimitBody(r, 0)
1565}
1566
1567// ReadLimitBody reads response headers from the given r,
1568// then reads the body using the ReadBody function and limiting the body size.

Callers 15

TestFSServeFileHeadFunction · 0.95
testFSFSCompressFunction · 0.95
TestDirFSServeFileHeadFunction · 0.95
TestServerCRNLAfterPostFunction · 0.95
TestServerPipelineFlushFunction · 0.95

Calls 1

ReadLimitBodyMethod · 0.95

Tested by 15

TestFSServeFileHeadFunction · 0.76
testFSFSCompressFunction · 0.76
TestDirFSServeFileHeadFunction · 0.76
TestServerCRNLAfterPostFunction · 0.76
TestServerPipelineFlushFunction · 0.76