[Web-SIG] WSGI safe write callable using greenlet
manlio_perillo at libero.it
Thu Apr 1 00:36:41 CEST 2010
Manlio Perillo ha scritto:
> In this period I'm upgrading my WSGI implementation for Nginx:
> So, I was thinking: what about a WSGI middleware that, using greenlets,
> expose to the application a write callable with the correct code flow?
> Here is a very first draft:
> It should work with every standard WSGI implementation.
Here is a more generic middleware and example application:
and here is the output:
The example also contains hints about features I plan to implement,
like the wsgiorg.suspend extension, and subrequests.
More information about the Web-SIG