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

Method CancelWrite

internal/http3/state_tracking_stream.go:90–93  ·  view source on GitHub ↗
(e quic.StreamErrorCode)

Source from the content-addressed store, hash-verified

88}
89
90func (s *stateTrackingStream) CancelWrite(e quic.StreamErrorCode) {
91 s.closeSend(&quic.StreamError{StreamID: s.StreamID(), ErrorCode: e})
92 s.Stream.CancelWrite(e)
93}
94
95func (s *stateTrackingStream) Write(b []byte) (int, error) {
96 n, err := s.Stream.Write(b)

Callers

nothing calls this directly

Calls 3

closeSendMethod · 0.95
StreamIDMethod · 0.65
CancelWriteMethod · 0.65

Tested by

no test coverage detected