Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created June 2, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/d5d520eb80305a5054f2 to your computer and use it in GitHub Desktop.
Save oberstet/d5d520eb80305a5054f2 to your computer and use it in GitHub Desktop.
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.static import File
from pprint import pprint
root = File(".")
pprint(root.contentTypes)
site = Site(root)
reactor.listenTCP(8080, site)
reactor.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment