MCPcopy
hub / github.com/urllib3/urllib3 / close

Method close

src/urllib3/response.py:1285–1295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1283 self._sock_shutdown(socket.SHUT_RD)
1284
1285 def close(self) -> None:
1286 self._sock_shutdown = None
1287
1288 if not self.closed and self._fp:
1289 self._fp.close()
1290
1291 if self._connection:
1292 self._connection.close()
1293
1294 if not self.auto_close:
1295 io.IOBase.close(self)
1296
1297 @property
1298 def closed(self) -> bool:

Callers 10

test_ioMethod · 0.95
_update_chunk_lengthMethod · 0.95
_error_catcherMethod · 0.45
_raw_readMethod · 0.45
read_chunkedMethod · 0.45
socket_handlerMethod · 0.45
teardown_classMethod · 0.45
teardown_classMethod · 0.45
_has_ipv6Function · 0.45

Calls

no outgoing calls

Tested by 5

test_ioMethod · 0.76
socket_handlerMethod · 0.36
teardown_classMethod · 0.36
teardown_classMethod · 0.36