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
| 58 | |
| 59 | |
| 60 | class 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 | |
| 79 | class SimpleAsyncHTTPClient(AsyncHTTPClient): |
no outgoing calls
no test coverage detected