Chris Withers wrote:
> Hi All,
> 
> What's the best way to serve large files (say detailed images or pdfs) 
> from a wsgi app?
> 
> Is there special support for this?
> 
> Also, does wsgi offer anything to help with http range requests and the 
> like?

It's not part of any WSGI standard, but in WebOb if there is a range 
request, a 200 response (i.e., no range has been applied) and app_iter 
has an app_iter_range method, it will use that to send a range response. 
  This response rewriting isn't on by default in WebOb, but I've usually 
turned it on in my own code.

An example is at the bottom of this tutorial: 
http://pythonpaste.org/webob/file-example.html


-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to