MCPcopy Index your code
hub / github.com/coder/coder / isPeerHTTP2StreamError

Function isPeerHTTP2StreamError

coderd/x/chatd/chaterror/classify.go:324–326  ·  view source on GitHub ↗
(streamErr http2.StreamError)

Source from the content-addressed store, hash-verified

322}
323
324func isPeerHTTP2StreamError(streamErr http2.StreamError) bool {
325 return streamErr.Cause != nil && streamErr.Cause.Error() == http2PeerResetCause
326}
327
328func isRetryableHTTP2StreamCode(code http2.ErrCode) bool {
329 switch code {

Callers 1

classifyHTTP2StreamResetFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected