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

Method Read

internal/http3/client.go:290–296  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

288}
289
290func (r *cancelingReader) Read(b []byte) (int, error) {
291 n, err := r.r.Read(b)
292 if err != nil && err != io.EOF {
293 r.str.CancelWrite(quic.StreamErrorCode(ErrCodeRequestCanceled))
294 }
295 return n, err
296}
297
298func (c *ClientConn) sendRequestBody(str *RequestStream, body io.ReadCloser, contentLength int64, dumps []*dump.Dumper) error {
299 defer body.Close()

Callers

nothing calls this directly

Calls 1

CancelWriteMethod · 0.65

Tested by

no test coverage detected