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

Function newBody

internal/http3/body.go:33–40  ·  view source on GitHub ↗
(str *Stream, contentLength int64)

Source from the content-addressed store, hash-verified

31}
32
33func newBody(str *Stream, contentLength int64) *body {
34 b := &body{str: str}
35 if contentLength >= 0 {
36 b.hasContentLength = true
37 b.remainingContentLength = contentLength
38 }
39 return b
40}
41
42func (r *body) StreamID() quic.StreamID { return r.str.StreamID() }
43

Callers 1

newResponseBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…