[Web-SIG] WSGI and start_response

Manlio Perillo manlio_perillo at libero.it
Thu Apr 8 16:59:34 CEST 2010


Aaron Watters ha scritto:
> someone remind me: where is the canonical WSGI 2 spec?

http://wsgi.org/wsgi/WSGI_2.0

> I assume there is a way to "wrap" WSGI 1 applications
> without breaking them?  Or is this the regex-->re fiasco
> all over again?
> 

start_response can be implemented by a function that will store the
status code and response headers.

There should be a sample WSGI 2.0 implementation for CGI, and a sample
WSGI 1.0 -> 2.0 adapter.

This adapter should be able to support the coroutine example,
> http://paste.pocoo.org/show/199202/
but I would like to test.

write callable, as far as I know, can not be implemented.

> [...]


Regards  Manlio


More information about the Web-SIG mailing list