MCPcopy
hub / github.com/urllib3/urllib3 / supports_chunked_reads

Method supports_chunked_reads

src/urllib3/response.py:1329–1336  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

streamMethod · 0.95
read_chunkedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected