MCPcopy
hub / github.com/urllib3/urllib3 / _is_read_error

Method _is_read_error

src/urllib3/util/retry.py:397–401  ·  view source on GitHub ↗

Errors that occur after the request has been started, so we should assume that the server began processing it.

(self, err: Exception)

Source from the content-addressed store, hash-verified

395 return isinstance(err, ConnectTimeoutError)
396
397 def _is_read_error(self, err: Exception) -> bool:
398 """Errors that occur after the request has been started, so we should
399 assume that the server began processing it.
400 """
401 return isinstance(err, (ReadTimeoutError, ProtocolError))
402
403 def _is_method_retryable(self, method: str) -> bool:
404 """Checks if a given HTTP method should be retried upon, depending if

Callers 1

incrementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected