Health-check endpoint — returns a friendly JSON status.
(self)
| 228 | self.wfile.write(body) |
| 229 | |
| 230 | def do_GET(self): # noqa: N802 |
| 231 | """Health-check endpoint — returns a friendly JSON status.""" |
| 232 | self._send_json( |
| 233 | 200, |
| 234 | { |
| 235 | "ok": True, |
| 236 | "status": "healthy", |
| 237 | "message": "VPS exit node is running.", |
| 238 | "usage": "Send POST with relay payload for actual proxy requests.", |
| 239 | }, |
| 240 | ) |
| 241 | |
| 242 | def do_POST(self): # noqa: N802 |
| 243 | """Relay endpoint — receives a JSON relay payload, fetches the URL.""" |
nothing calls this directly
no test coverage detected