Re: [Web-SIG] HTTP 1.1 Expect/Continue handling

2008-01-28 Thread James Y Knight
On Jan 29, 2008, at 1:36 AM, Brian Smith wrote: > 1. The WSGI gateway must send the response headers immediately when > the application yields its first non-empty string. > > 2. When there is an "100-continue" token in the request "Expect:" > header, the WSGI gateway is allowed to delay sendi

[Web-SIG] HTTP 1.1 Expect/Continue handling

2008-01-28 Thread Brian Smith
1. The WSGI gateway must send the response headers immediately when the application yields its first non-empty string. 2. When there is an "100-continue" token in the request "Expect:" header, the WSGI gateway is allowed to delay sending the "100 Continue" response until the application reads f

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-28 Thread Ian Bicking
Manlio Perillo wrote: > Ian Bicking ha scritto: > > >> [...] >> >>> 1) Do not change SCRIPT_NAME, and instead add a wsgiorg.consumed_path, a >>> list. >>> >>> This means that the request uri recostruction must be changed: >>> SCRIPT_NAME = SCRIPT_NAME + '/'.join(wsgiorg.consumed_path)

Re: [Web-SIG] environ["wsgi.input"].read()

2008-01-28 Thread Brian Smith
Andrew Clover wrote: > Manlio Perillo wrote: > > what about "requiring" that a WSGI implementation calls the WSGI > > application only when all the request body has been read? > > Regardless of the discussed technical issues, 'no thanks' - > this would make it impossible to write - to choose an

Re: [Web-SIG] environ["wsgi.input"].read()

2008-01-28 Thread Andrew Clover
Manlio Perillo wrote: > what about "requiring" that a WSGI implementation calls the WSGI application > only when all the request body has been read? Regardless of the discussed technical issues, 'no thanks' - this would make it impossible to write - to choose an example from production code - a

Re: [Web-SIG] wsgiorg.routing_args and original SCRIPT_NAME

2008-01-28 Thread Manlio Perillo
Ian Bicking ha scritto: > > [...] > >> 1) Do not change SCRIPT_NAME, and instead add a wsgiorg.consumed_path, a >> list. >> >> This means that the request uri recostruction must be changed: >> SCRIPT_NAME = SCRIPT_NAME + '/'.join(wsgiorg.consumed_path) > > I suppose you could leave st