MCPcopy Create free account
hub / github.com/EasyIME/PIME / HTTPTimeoutError

Class HTTPTimeoutError

python/python3/tornado/simple_httpclient.py:44–57  ·  view source on GitHub ↗

Error raised by SimpleAsyncHTTPClient on timeout. For historical reasons, this is a subclass of `.HTTPClientError` which simulates a response code of 599. .. versionadded:: 5.1

Source from the content-addressed store, hash-verified

42
43
44class HTTPTimeoutError(HTTPError):
45 """Error raised by SimpleAsyncHTTPClient on timeout.
46
47 For historical reasons, this is a subclass of `.HTTPClientError`
48 which simulates a response code of 599.
49
50 .. versionadded:: 5.1
51 """
52
53 def __init__(self, message: str) -> None:
54 super().__init__(599, message=message)
55
56 def __str__(self) -> str:
57 return self.message or "Timeout"
58
59
60class HTTPStreamClosedError(HTTPError):

Callers 2

_on_timeoutMethod · 0.85
_on_timeoutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected