4 ms·
Ok, I'm using WSGI every day but I haven't delved down into the details of it. But what would be the benefits of using WSGI Lite instead of the regular WSGI? Pe
by bitanarch 15y ago
Ok, I'm using WSGI every day but I haven't delved down into the details of it. But what would be the benefits of using WSGI Lite instead of the regular WSGI? Performance?
- inarru 15y agothe only benefit is not using start_response() before returning your data.
- inarru 15y agowell, that's not quite all. if you're writing middleware you sometimes have to write a some (mostly reusable) extra code to pass as the start_response() to other wsgi callables. (to access the headers and/or munge anything sent by .write() -- or disallow .write() entirely).