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

Method Is

internal/http3/error.go:36–39  ·  view source on GitHub ↗
(target error)

Source from the content-addressed store, hash-verified

34}
35
36func (e *Error) Is(target error) bool {
37 t, ok := target.(*Error)
38 return ok && e.ErrorCode == t.ErrorCode && e.Remote == t.Remote
39}
40
41func maybeReplaceError(err error) error {
42 if err == nil {

Callers 5

shouldRetryDialFunction · 0.45
WriteMethod · 0.45
countReadFrameErrorMethod · 0.45
WriteMethod · 0.45
ReadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected