MCPcopy Index your code
hub / github.com/RustPython/RustPython / send_head

Method send_head

Lib/http/server.py:1080–1085  ·  view source on GitHub ↗

Version of send_head that support CGI scripts

(self)

Source from the content-addressed store, hash-verified

1078 "Can only POST to CGI scripts")
1079
1080 def send_head(self):
1081 """Version of send_head that support CGI scripts"""
1082 if self.is_cgi():
1083 return self.run_cgi()
1084 else:
1085 return SimpleHTTPRequestHandler.send_head(self)
1086
1087 def is_cgi(self):
1088 """Test whether self.path corresponds to a CGI script.

Callers

nothing calls this directly

Calls 2

is_cgiMethod · 0.95
run_cgiMethod · 0.95

Tested by

no test coverage detected