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

Method CloseWithError

internal/http2/pipe.go:111–111  ·  view source on GitHub ↗

CloseWithError causes the next Read (waking up a current blocked Read if needed) to return the provided err after all data has been read. The error must be non-nil.

(err error)

Source from the content-addressed store, hash-verified

109//
110// The error must be non-nil.
111func (p *pipe) CloseWithError(err error) { p.closeWithError(&p.err, err, nil) }
112
113// BreakWithError causes the next Read (waking up a current blocked
114// Read if needed) to return the provided err immediately, without

Callers 2

cleanupWriteRequestMethod · 0.45
processResetStreamMethod · 0.45

Calls 1

closeWithErrorMethod · 0.95

Tested by

no test coverage detected