[mod_python] send file back to apache?

Greg Fawcett greg at vig.co.nz
Sun Jul 22 22:46:51 EDT 2007


request.sendfile() may be what you are looking for.


On 23/07/07, Peter Shinners <pete at shinners.org> wrote:
>
> If I have the full path of a static file I want served, is there a way to
> let apache deal with it, after entering my mod_python handler?
>
> I've written the Python code to try sending a static file. It deals with
> ETag, caching, and stuff. It still seems like this would be a better task
> for apache?
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



-- 
Phone: +64 3 409 8165
Mobile: +64 21 333 291
Fax: +64 3 974 6810
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070723/b202d132/attachment.html


More information about the Mod_python mailing list