[mod_python] Re: Chunked encoding

Lars Eriksen downgrade at gmx.org
Wed Feb 15 06:53:06 EST 2006


Yes, there is :-) RTFM, I guess ...

from mod_python.util import *
from mod_python import apache

def handle(req):
    data = 'No chunking involved.' * 1024
    req.set_content_length(len(data))   
    req.write(data, 0)
    req.flush()
    return apache.OK


More information about the Mod_python mailing list