Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ do_HEAD
Method
do_HEAD
Lib/http/server.py:715–719 ·
view source on GitHub ↗
Serve a HEAD request.
(self)
Source
from the content-addressed store, hash-verified
713
f.close()
714
715
def
do_HEAD(self):
716
""
"Serve a HEAD request."
""
717
f = self.send_head()
718
if
f:
719
f.close()
720
721
def
send_head(self):
722
""
"Common code
for
GET and HEAD commands.
Callers
nothing calls this directly
Calls
2
send_head
Method · 0.95
close
Method · 0.45
Tested by
no test coverage detected