MCPcopy Create free account
hub / github.com/defold/defold / do_POST

Method do_POST

engine/script/test_script_server.py:81–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.wfile.write(to_send.encode('ascii'))
80
81 def do_POST(self):
82 len = self.headers.get('Content-Length')
83 s = self.rfile.read(int(len))
84 self.send_response(200)
85 self.send_header("Content-type", "text/plain")
86 self.end_headers()
87 self.wfile.write('PONG'.encode('ascii'))
88 self.wfile.write(s)
89
90 def do_PUT(self):
91 len = self.headers.get('Content-Length')

Callers

nothing calls this directly

Calls 5

send_responseMethod · 0.80
getMethod · 0.65
readMethod · 0.45
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected