Skip to content

Instantly share code, notes, and snippets.

@atsuoishimoto
Created April 24, 2019 10:46
Show Gist options
  • Select an option

  • Save atsuoishimoto/423179a83cfe1e59814aca441b6a56e6 to your computer and use it in GitHub Desktop.

Select an option

Save atsuoishimoto/423179a83cfe1e59814aca441b6a56e6 to your computer and use it in GitHub Desktop.
the simplest http server
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