List Info

Thread: Clever NPH header handling in CherryPy?




Clever NPH header handling in CherryPy?
user name
2006-12-07 00:21:56
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
fumanchuamor.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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

Clever NPH header handling in CherryPy?
user name
2006-12-07 05:14:14
Oh, excellent! This tool is really growing on me. 
Thank you,
Gloria


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )