Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ do_HEAD
Method
do_HEAD
Lib/http/server.py:743–747 ·
view source on GitHub ↗
Serve a HEAD request.
(self)
Source
from the content-addressed store, hash-verified
741
f.close()
742
743
def
do_HEAD(self):
744
""
"Serve a HEAD request."
""
745
f = self.send_head()
746
if
f:
747
f.close()
748
749
def
send_head(self):
750
""
"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