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

Method do_POST

python/vercel-runtime/tests/fixtures/http_handler.py:31–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 self.wfile.write(f"GET {self.path}".encode())
30
31 def do_POST(self):
32 content_length = int(self.headers.get("Content-Length", 0))
33 body = self.rfile.read(content_length).decode()
34 self.send_response(200)
35 self.send_header("Content-Type", "text/plain")
36 self.end_headers()
37 self.wfile.write(f"POST {self.path} body={body}".encode())

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected