[Web-SIG] Latest WSGI Draft
ianb at colorstudy.com
Mon Aug 23 17:43:17 CEST 2004
Phillip J. Eby wrote:
>> Well, let's say mod_python adds two extensions. One is to do a local
>> redirect, the other is to do a recursive call. The local redirect
>> would be in wsgi.extensions (if it existed), but the recursive call
>> would not. With wsgi.extensions, the middleware would eliminate the
>> local redirect, and the application would be forced to use the
>> recursive call and write out the result of that. Which is what you
>> would want, because then the middleware would have an opportunity to
>> modify the output.
> In that case, why not have the local_redirect function require the
> start_response callable as one of its parameters? It can then refuse if
> the output has been captured by middleware.
How can it tell output is going to be captured?
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Web-SIG