yourmomasaservice/yourmomasaservice.py

21 lines
322 B
Python
Raw Normal View History

2017-09-08 09:57:03 -04:00
#!/usr/bin/env python
import BaseHTTPServer
import SocketServer
PORT = 8080
class YourMomServer(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200, "Your Mom")
httpd = SocketServer.TCPServer(("", PORT), YourMomServer)
def serve():
return 1
while serve():
httpd.handle_request()