Checks if the underlying file-like object looks like a :class:`http.client.HTTPResponse` object. We do this by testing for the fp attribute. If it is present we assume it returns raw chunks as processed by read_chunked().
(self)
| 1327 | return self._fp.flush() |
| 1328 | |
| 1329 | def supports_chunked_reads(self) -> bool: |
| 1330 | """ |
| 1331 | Checks if the underlying file-like object looks like a |
| 1332 | :class:`http.client.HTTPResponse` object. We do this by testing for |
| 1333 | the fp attribute. If it is present we assume it returns raw chunks as |
| 1334 | processed by read_chunked(). |
| 1335 | """ |
| 1336 | return hasattr(self._fp, "fp") |
| 1337 | |
| 1338 | def _update_chunk_length(self) -> None: |
| 1339 | # First, we'll figure out length of a chunk and then |
no outgoing calls
no test coverage detected