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

Method do_POST

Lib/http/server.py:1066–1078  ·  view source on GitHub ↗

Serve a POST request. This is only implemented for CGI scripts.

(self)

Source from the content-addressed store, hash-verified

1064 rbufsize = 0
1065
1066 def do_POST(self):
1067 """Serve a POST request.
1068
1069 This is only implemented for CGI scripts.
1070
1071 """
1072
1073 if self.is_cgi():
1074 self.run_cgi()
1075 else:
1076 self.send_error(
1077 HTTPStatus.NOT_IMPLEMENTED,
1078 "Can only POST to CGI scripts")
1079
1080 def send_head(self):
1081 """Version of send_head that support CGI scripts"""

Callers

nothing calls this directly

Calls 3

is_cgiMethod · 0.95
run_cgiMethod · 0.95
send_errorMethod · 0.80

Tested by

no test coverage detected