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@37 | 1 | #!/usr/bin/env python |
paulb@37 | 2 | |
paulb@37 | 3 | from WebStack.Adapters import BaseHTTPRequestHandler |
paulb@41 | 4 | from Simple import SimpleResource |
paulb@37 | 5 | import BaseHTTPServer |
paulb@37 | 6 | |
paulb@37 | 7 | # Special magic incantation. |
paulb@37 | 8 | |
paulb@37 | 9 | handler = BaseHTTPRequestHandler.HandlerFactory(SimpleResource()) |
paulb@37 | 10 | address = ("", 8080) |
paulb@37 | 11 | server = BaseHTTPServer.HTTPServer(address, handler) |
paulb@37 | 12 | server.serve_forever() |
paulb@37 | 13 | |
paulb@37 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |