Created
April 24, 2019 10:46
-
-
Save atsuoishimoto/423179a83cfe1e59814aca441b6a56e6 to your computer and use it in GitHub Desktop.
the simplest http server
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 http.server as h | |
| class H(h.BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(200) | |
| self.end_headers() | |
| self.wfile.write(b'hello') | |
| h.test(H, port=8000) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment