MCPcopy Create free account
hub / github.com/libgit2/git2go / newManagedHttpStream

Function newManagedHttpStream

http.go:136–144  ·  view source on GitHub ↗
(owner *httpSmartSubtransport, req *http.Request)

Source from the content-addressed store, hash-verified

134}
135
136func newManagedHttpStream(owner *httpSmartSubtransport, req *http.Request) *httpSmartSubtransportStream {
137 r, w := io.Pipe()
138 return &httpSmartSubtransportStream{
139 owner: owner,
140 req: req,
141 reader: r,
142 writer: w,
143 }
144}
145
146func (self *httpSmartSubtransportStream) Read(buf []byte) (int, error) {
147 if !self.sentRequest {

Callers 1

ActionMethod · 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…