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

Class HTTPStreamClosedError

python/python3/tornado/simple_httpclient.py:60–76  ·  view source on GitHub ↗

Error raised by SimpleAsyncHTTPClient when the underlying stream is closed. When a more specific exception is available (such as `ConnectionResetError`), it may be raised instead of this one. For historical reasons, this is a subclass of `.HTTPClientError` which simulates a respons

Source from the content-addressed store, hash-verified

58
59
60class HTTPStreamClosedError(HTTPError):
61 """Error raised by SimpleAsyncHTTPClient when the underlying stream is closed.
62
63 When a more specific exception is available (such as `ConnectionResetError`),
64 it may be raised instead of this one.
65
66 For historical reasons, this is a subclass of `.HTTPClientError`
67 which simulates a response code of 599.
68
69 .. versionadded:: 5.1
70 """
71
72 def __init__(self, message: str) -> None:
73 super().__init__(599, message=message)
74
75 def __str__(self) -> str:
76 return self.message or "Stream closed"
77
78
79class SimpleAsyncHTTPClient(AsyncHTTPClient):

Callers 2

_handle_exceptionMethod · 0.85
on_connection_closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected