MCPcopy Index your code
hub / github.com/codenameone/CodenameOne / do_POST

Method do_POST

scripts/javascript_browser_harness.py:160–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 super().do_GET()
159
160 def do_POST(self) -> None:
161 if self.path != "/__cn1__/log":
162 self.send_error(404)
163 return
164 length = int(self.headers.get("Content-Length", "0"))
165 data = self.rfile.read(length).decode("utf-8", errors="replace")
166 state.append_log(data)
167 self.send_response(204)
168 self.end_headers()
169
170 return Handler
171

Callers

nothing calls this directly

Calls 4

append_logMethod · 0.80
getMethod · 0.65
readMethod · 0.65
decodeMethod · 0.45

Tested by

no test coverage detected