Skip to content

Instantly share code, notes, and snippets.

@mironside
mironside / minhttp.py
Last active July 3, 2017 05:03
minimal http server/router, intended for pasting into single file python scripts
#
# A minimal, zero dependency http server/router
#
# def root(req):
# return 'Hello, world'
# routes = (
# ('GET', '/', root),
# )
# http(routes, 'localhost', 8080)
#

Keybase proof

I hereby claim:

  • I am mironside on github.
  • I am mironside (https://keybase.io/mironside) on keybase.
  • I have a public key whose fingerprint is 6BF9 20F4 60C3 364D 4CA6 6B39 B638 5B61 65F3 D7D0

To claim this, I am signing this object: