Created
February 26, 2021 21:42
-
-
Save adrianmihalko/62ed2ea8dc1f75780d3bf5d2a292cc86 to your computer and use it in GitHub Desktop.
One line webserver with request logging with python twisted
This file contains 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
python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; from twisted.python import log; import sys; log.startLogging(sys.stdout); reactor.listenTCP(1990, Site(File("."))); reactor.run()' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment