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

Function newResponseBody

internal/http3/body.go:100–105  ·  view source on GitHub ↗
(str *Stream, contentLength int64, done chan<- struct{})

Source from the content-addressed store, hash-verified

98var _ io.ReadCloser = &hijackableBody{}
99
100func newResponseBody(str *Stream, contentLength int64, done chan<- struct{}) *hijackableBody {
101 return &hijackableBody{
102 body: *newBody(str, contentLength),
103 reqDone: done,
104 }
105}
106
107func (r *hijackableBody) Read(b []byte) (int, error) {
108 n, err := r.body.Read(b)

Callers 1

ReadResponseMethod · 0.85

Calls 1

newBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…