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

Function isRetryableHTTP2StreamCode

coderd/x/chatd/chaterror/classify.go:328–339  ·  view source on GitHub ↗
(code http2.ErrCode)

Source from the content-addressed store, hash-verified

326}
327
328func isRetryableHTTP2StreamCode(code http2.ErrCode) bool {
329 switch code {
330 case http2.ErrCodeNo,
331 http2.ErrCodeInternal,
332 http2.ErrCodeRefusedStream,
333 http2.ErrCodeCancel,
334 http2.ErrCodeEnhanceYourCalm:
335 return true
336 default:
337 return false
338 }
339}
340
341func streamIncompleteClassification(
342 lowerMessage string,

Callers 1

classifyHTTP2StreamResetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected