2019-04-16 18:19:04 -07:00
|
|
|
#-----------------------------------------------------------------------------------------
|
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
# Licensed under the MIT License. See LICENSE in the project root for license information.
|
|
|
|
|
#-----------------------------------------------------------------------------------------
|
|
|
|
|
|
2019-04-19 13:47:02 -07:00
|
|
|
import socketserver
|
|
|
|
|
import http.server
|
|
|
|
|
|
|
|
|
|
RequestHandler = http.server.SimpleHTTPRequestHandler
|
|
|
|
|
|
|
|
|
|
PORT = 5000
|
|
|
|
|
|
|
|
|
|
with socketserver.TCPServer(("", PORT), RequestHandler) as httpd:
|
2019-04-19 14:40:02 -07:00
|
|
|
print("Server running on port", PORT)
|
2019-04-19 13:47:02 -07:00
|
|
|
httpd.serve_forever()
|