Commit 5ed56434 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

Update verySimpleServer.py

parent 04b9ac1d
......@@ -12,11 +12,11 @@
import http.server
PORT = 8000 # specifies the port number to accept connections on
PORT = 8000 # specifies the port number to accept connections on
server = http.server.HTTPServer # instantiates an HTTP server object
handler = http.server.SimpleHTTPRequestHandler # instantiates a request handler object
server_address = ("", PORT) # specifies server directory and port number
server = http.server.HTTPServer # instantiates an HTTP server object
handler = http.server.SimpleHTTPRequestHandler # instantiates a request handler object
server_address = ("", PORT) # specifies server directory and port number
print("Starting server...") # outputs a message
httpd = server(server_address, handler) # creates the server which will listen at the HTTP socket, dispatching requests to the handler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment