Open GoogleCodeExporter opened 8 years ago
Thinking about this more, I'm pretty sure this is another something jsgi
middleware
would be better suited for. But _how_ is still a bit of a mystery to me. Say
three
representations come in a multipart POST. A clean middleware pattern to support
this
would be to clone the env and add the first representation to jsgi.input, update
env['CONTENT_TYPE'], and add a Transaction: open header. Upon success, take the
response's location and do the remaining representations as PUTs to the
response's
Location, closing the transaction on the last one. I'm not sure if jsgi supports
multiple app(env) calls (wsgi has the start_response callable which precludes
this,
but jsgi and jack seem designed to accomodate this). If it does, what needs to
be
taken into consideration? Persevere seems to have issues with the streams for
now. If
this isn't the right approach, would setting up a new mock request be better?
Or a
whole new XHR?
Original comment by dean%dea...@gtempaccount.com
on 9 Aug 2009 at 4:01
Original issue reported on code.google.com by
dean%dea...@gtempaccount.com
on 6 Aug 2009 at 9:37