MCPcopy
hub / github.com/encode/httpx / StreamClosed

Class StreamClosed

httpx/_exceptions.py:327–337  ·  view source on GitHub ↗

Attempted to read or stream response content, but the request has been closed.

Source from the content-addressed store, hash-verified

325
326
327class StreamClosed(StreamError):
328 """
329 Attempted to read or stream response content, but the request has been
330 closed.
331 """
332
333 def __init__(self) -> None:
334 message = (
335 "Attempted to read or stream content, but the stream has " "been closed."
336 )
337 super().__init__(message)
338
339
340class ResponseNotRead(StreamError):

Callers 4

__iter__Method · 0.85
__aiter__Method · 0.85
iter_rawMethod · 0.85
aiter_rawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected