[Web-SIG] Prohibiting reading from wsgi.input in an application iterable's close method

Brian Smith brian at briansmith.org
Thu Jan 31 03:26:28 CET 2008


I would like to see the following requirement added to the WSGI specification:

An application may only methods on environ["wsgi.input"] before it returns its response iterable, or from within an execution of its iterable's next() method. In particular, the application iterable's close() method, MUST NOT read from wsgi.input.

Thoughts?

- Brian



More information about the Web-SIG mailing list