How raghunandhang/simple-wsgi-app works
This is a minimal WSGI teaching web app. A browser request reaches the built-in WSGI server, which dispatches to the application’s URL router; the router selects a page handler, which builds HTML and sets the response status and headers. The server then delivers the WSGI response. The README also documents request logging and the home page’s request details. Source excerpts support the runtime calls; the README supplies the protocol-level request/response relationship.
Main entry points: wsgi_server.py WSGI server · simple_wsgi_app.py URL router
Components 4
Web runtime
- WSGI server
wsgi_server.py - URL router
simple_wsgi_app.py - Page handlers
simple_wsgi_app.py
Other components
- Browser
Connections 5
- Browser → WSGI server: sends request
README.md - WSGI server → URL router: dispatches to
wsgi_server.py - URL router → Page handlers: routes request
simple_wsgi_app.py - Page handlers → WSGI server: returns response
README.md - WSGI server → Browser: serves response
README.md