annotate pythonServer-legacy.py @ 1118:3edcbbea168b

Added schema for Test Specification Document for validation (wip)
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 23 Dec 2015 12:41:08 +0000
parents
children
rev   line source
n@1118 1 import SimpleHTTPServer
n@1118 2 import SocketServer
n@1118 3
n@1118 4 PORT = 8080
n@1118 5
n@1118 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
n@1118 7
n@1118 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
n@1118 9
n@1118 10 print "serving at port", PORT
n@1118 11 httpd.serve_forever()