Files
2026-10-23 05:24:45 -04:00

16 lines
433 B
Python

import os
from http.server import BaseHTTPRequestHandler, HTTPServer
PORT = int(os.environ.get("PORT", 8080))
class H(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-Type", "text/plain")
self.end_headers()
self.wfile.write(b"hello from ghaymah ci python")
def log_message(self, *a):
pass
HTTPServer(("0.0.0.0", PORT), H).serve_forever()