Created
August 28, 2018 06:10
-
-
Save AhnMo/72a25f2fc53c14e4495e0f4c97b014ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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