MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _html

Method _html

codeclash/replay/serve.py:77–83  ·  view source on GitHub ↗
(self, page: str, status: int = 200)

Source from the content-addressed store, hash-verified

75 self.send_error(404)
76
77 def _html(self, page: str, status: int = 200):
78 body = page.encode()
79 self.send_response(status)
80 self.send_header("Content-Type", "text/html; charset=utf-8")
81 self.send_header("Content-Length", str(len(body)))
82 self.end_headers()
83 self.wfile.write(body)
84
85 def log_message(self, *args): # keep the console quiet
86 pass

Callers 1

do_GETMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected