Web Gateway Modules

wsgiref.simple_server

Small reference HTTP server and request-handler implementation for WSGI applications. make_server binds a listening address; the demonstration application can be invoked directly without running a server. It is intended for reference and local learning, not public production exposure.

Formal Syntax & Structure

python syntaxpython
import wsgiref.simple_server

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from wsgiref.simple_server import WSGIServerfrom http.server import HTTPServerprint(issubclass(WSGIServer, HTTPServer))
Python Reference