PyDocs

Internet Protocols and Support

wsgiref.simple_server

BaseHTTPServer that implements the Python WSGI protocol (PEP 3333)

This is both an example of how WSGI can be implemented, and a basis for running
simple web applications on a local machine, such as might be done when testing
or debugging an application.  It has not been reviewed for security issues,
however, and we strongly recommend that you use a "real" web server for
production use.

For example usage, see the 'if __name__=="__main__"' block at the end of the
module.  See also the BaseHTTPServer module docs for other API information.
Symbols in wsgiref.simple_server

d

demo_app
This function is a small but complete WSGI application that returns a text page containing the message “Hello world!” and a list of the key/value pairs provided in the environ parameter.

m

make_server
Create a new WSGI server listening on `host` and `port` for `app`

w

WSGIRequestHandler
Create an HTTP handler for the given request (i.e.
WSGIServer
BaseHTTPServer that implements the Python WSGI protocol