This image (below) describes the default structure of TiddlyWeb's WSGI middleware. See Server Startup Model and Server Request Model for a bit more information. This illustration was taking from a blog posting on TiddlyWeb plugins.
Note that this image is somewhat out of date. The Html Presenter is no longer used.