Created
October 13, 2010 15:57
-
-
Save shomah4a/624326 to your computer and use it in GitHub Desktop.
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
#-*- coding:utf-8 -*- | |
from wsgiref import simple_server | |
def teapot(environ, start_response): | |
start_response("418 I'm a teapot", []) | |
return "I'm a teapot" | |
def main(): | |
simple_server.make_server('', 8080, teapot).serve_forever() | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment