Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ close
Method
close
Lib/http/client.py:435–440 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
433
fp.close()
434
435
def
close(self):
436
try
:
437
super().close()
# set "closed" flag
438
finally:
439
if
self.fp:
440
self._close_conn()
441
442
# These implementations are for the benefit of io.BufferedReader.
443
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