Skip to content

Instantly share code, notes, and snippets.

@AhnMo
Created August 28, 2018 06:10
Show Gist options
  • Save AhnMo/72a25f2fc53c14e4495e0f4c97b014ab to your computer and use it in GitHub Desktop.
Save AhnMo/72a25f2fc53c14e4495e0f4c97b014ab to your computer and use it in GitHub Desktop.
import BaseHTTPServer, SimpleHTTPServer
PORT = 8080
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.end_headers()
self.wfile.write(b'<h1 style="text-align: center">UNDER CONSTRUCTION</h1>')
httpd = BaseHTTPServer.HTTPServer(('localhost', PORT),
SimpleHTTPRequestHandler)
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment