Hi,

I'm a bit confused as to how wsgi middleware interacts with web.py.
I'd like to write or use a compression middleware that automatically
compresses all streams using gzip compression.

paste.gzipper seems to be nearly ideal: http://pythonpaste.org/modules/gzipper

but when I added:
from paste.gzipper import middleware as gzipMiddleware
.
.
.
web.run(urlhandler.urls, globals(), gzipMiddleware)

to my application code, gzipping does not get enabled. I thought it
may have something to do with improper setting of content-type or
something but after experimenting, it seems like start_response is
never being called. Do I have to call this explicitly in my view
functions somewhere or is web.py supposed to take care of that for me?

Does anybody have any examples of the gzipper middleware working with
web.py?

Thanks,
Dusty
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to