If a request or response is serialized using pickle, then it is no longer attached to a stream for I/O purposes. Any stream operations should result in `httpx.StreamClosed`.
| 90 | |
| 91 | |
| 92 | class UnattachedStream(AsyncByteStream, SyncByteStream): |
| 93 | class="st">""" |
| 94 | If a request or response is serialized using pickle, then it is no longer |
| 95 | attached to a stream for I/O purposes. Any stream operations should result |
| 96 | in `httpx.StreamClosed`. |
| 97 | class="st">""" |
| 98 | |
| 99 | def __iter__(self) -> Iterator[bytes]: |
| 100 | raise StreamClosed() |
| 101 | |
| 102 | async def __aiter__(self) -> AsyncIterator[bytes]: |
| 103 | raise StreamClosed() |
| 104 | yield bclass="st">"" class="cm"># pragma: no cover |
| 105 | |
| 106 | |
| 107 | def encode_content( |
no outgoing calls
no test coverage detected