[Web-SIG] WSGI: read method

Ian Bicking ianb at colorstudy.com
Fri Sep 8 20:55:48 CEST 2006


Robert Brewer wrote:
>  > Hmm... I could also set CONTENT_LENGTH='1', and make .read(1) return the
>  > actual entire body, totally ignoring the size argument.  Or make it
>  > '99999', or whatever.  That seems bad-clever, but maybe most workable
>  > with PEP 333?
> 
> I'm getting lost on the phrase "internal request"--what do you mean by that?

The WSGI request originates from Python, not from an external request. 
So, the WSGI environment is created from Python and sent to the 
application without any HTTP server.

-- 
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org


More information about the Web-SIG mailing list