Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ close
Method
close
Lib/http/client.py:438–443 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
436
fp.close()
437
438
def
close(self):
439
try
:
440
super().close()
# set "closed" flag
441
finally:
442
if
self.fp:
443
self._close_conn()
444
445
# These implementations are for the benefit of io.BufferedReader.
446
Callers
15
test_status_lines
Method · 0.95
test_partial_reads
Method · 0.95
test_mixed_reads
Method · 0.95
test_partial_readintos
Method · 0.95
test_partial_reads_past_end
Method · 0.95
test_partial_readintos_past_end
Method · 0.95
test_partial_reads_no_content_length
Method · 0.95
test_partial_readintos_incomplete_body
Method · 0.95
test_chunked
Method · 0.95
test_readinto_chunked
Method · 0.95
test_chunked_head
Method · 0.95
test_readinto_chunked_head
Method · 0.95
Calls
2
_close_conn
Method · 0.95
super
Class · 0.85
Tested by
15
test_status_lines
Method · 0.76
test_partial_reads
Method · 0.76
test_mixed_reads
Method · 0.76
test_partial_readintos
Method · 0.76
test_partial_reads_past_end
Method · 0.76
test_partial_readintos_past_end
Method · 0.76
test_partial_reads_no_content_length
Method · 0.76
test_partial_readintos_incomplete_body
Method · 0.76
test_chunked
Method · 0.76
test_readinto_chunked
Method · 0.76
test_chunked_head
Method · 0.76
test_readinto_chunked_head
Method · 0.76