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

Method Read

internal/http3/state_tracking_stream.go:108–114  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

106}
107
108func (s *stateTrackingStream) Read(b []byte) (int, error) {
109 n, err := s.Stream.Read(b)
110 if err != nil && !errors.Is(err, os.ErrDeadlineExceeded) {
111 s.closeReceive(err)
112 }
113 return n, err
114}
115
116func (s *stateTrackingStream) SendDatagram(b []byte) error {
117 s.mx.Lock()

Callers

nothing calls this directly

Calls 2

closeReceiveMethod · 0.95
IsMethod · 0.45

Tested by

no test coverage detected