[Web-SIG] serving (potentially large) files through wsgi?
Phillip J. Eby
pje at telecommunity.com
Mon Dec 10 15:45:52 CET 2007
At 12:08 PM 12/10/2007 +0000, Chris Withers wrote:
>What's the best way to serve large files (say detailed images or pdfs)
>from a wsgi app?
>Is there special support for this?
That's what the iteration part of the protocol is for (well, and a
few other things). If you're not serving large files, it's
counterproductive to yield multiple values or to call write() multiple times.
More information about the Web-SIG