MCPcopy Create free account
hub / github.com/imroc/req / Read

Method Read

transfer.go:939–944  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

937}
938
939func (bl bodyLocked) Read(p []byte) (n int, err error) {
940 if bl.b.closed {
941 return 0, http.ErrBodyReadAfterClose
942 }
943 return bl.b.readLocked(p)
944}
945
946var httplaxContentLength = godebug.New("httplaxcontentlength")
947

Callers

nothing calls this directly

Calls 1

readLockedMethod · 0.80

Tested by

no test coverage detected