web server

A program that listens for web requests on a port and sends back responses.

In more detail

It turns each request into a response, either by serving a file or by handing the request to application code. It can be a separate program such as nginx or a library running inside the application process. Development servers usually run on your own machine at localhost.

Examples

return HTTPServer(("127.0.0.1", port), Handler)  # the good variant ships its own server
The course runs localCGIServer.py so CGI scripts work without a hosting account.

Related terms

Taught in

References