Gloria wrote:
> Hi, I may be asking for the impossible, but I figured
> I'd try anyway. I'm looking for NPH header support in
> CherryPy
Pedantic answer: you already have it, for the most part. Set
any headers
you want.
> so that, in theory, I could somehow return a portion
> of my data at a time, repeatedly passing the data back
> to the same session. I realize this implies some
> connectivity which CherryPy does not support.
On the contrary, CherryPy supports this in 2 ways:
1) See http://ww
w.cherrypy.org/wiki/ReturnVsYield. This technique can be
used in CherryPy 2 and 3.
2) Starting last week, CherryPy's wsgiserver will use the
"chunked"
Transfer-Encoding on the response if:
a. both the server and client are HTTP/1.1
b. you don't set any "Content-Length" response
header
c. you set cherrypy.response.stream = True
d. the response status is one of (200, 203, 206).
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|