annotate pythonServer-legacy.py @ 1404:3b9f0bc523d6

test_create: Specification Node handles complete XML to DOM and DOM to XML conversions
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 04 Dec 2015 18:34:04 +0000
parents
children
rev   line source
nickjillings@1404 1 import SimpleHTTPServer
nickjillings@1404 2 import SocketServer
nickjillings@1404 3
nickjillings@1404 4 PORT = 8080
nickjillings@1404 5
nickjillings@1404 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1404 7
nickjillings@1404 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1404 9
nickjillings@1404 10 print "serving at port", PORT
nickjillings@1404 11 httpd.serve_forever()