MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / do_GET

Method do_GET

pkg/pypi/tests/test_cli.py:1047–1058  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1045
1046 class Handler(http.server.BaseHTTPRequestHandler):
1047 def do_GET(self):
1048 body = routes.get(self.path)
1049 if body is None:
1050 self.send_response(302)
1051 self.send_header("Location", "https://example.invalid/elsewhere")
1052 self.send_header("Content-Length", "0")
1053 self.end_headers()
1054 return
1055 self.send_response(200)
1056 self.send_header("Content-Length", str(len(body)))
1057 self.end_headers()
1058 self.wfile.write(body)
1059
1060 def log_message(self, *args):
1061 pass

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
getMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected