2004-06-06 | paulb | file changeset files shortlog | [project @ 2004-06-06 15:13:39 by paulb] Introduced Unicode conversion in message body fields acquisition (to Unicode from the original charset) and in the production of response output (to an appropriate charset from Unicode where used). |
paulb@117 | 1 | #!/usr/bin/env python |
paulb@117 | 2 | |
paulb@117 | 3 | from WebStack.Adapters import BaseHTTPRequestHandler |
paulb@117 | 4 | from Cookies import CookiesResource |
paulb@117 | 5 | import BaseHTTPServer |
paulb@117 | 6 | |
paulb@117 | 7 | # Special magic incantation. |
paulb@117 | 8 | |
paulb@117 | 9 | handler = BaseHTTPRequestHandler.HandlerFactory(CookiesResource()) |
paulb@117 | 10 | address = ("", 8080) |
paulb@117 | 11 | server = BaseHTTPServer.HTTPServer(address, handler) |
paulb@117 | 12 | server.serve_forever() |
paulb@117 | 13 | |
paulb@117 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |