[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spiffy relies on content-length (was Re: [Chicken-users] Spiffy reli
From: |
Robin Lee Powell |
Subject: |
Re: Spiffy relies on content-length (was Re: [Chicken-users] Spiffy relies on removed proc.) |
Date: |
Sun, 16 Mar 2008 14:56:11 -0700 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
On Sun, Mar 16, 2008 at 04:48:29PM -0400, Graham Fawcett wrote:
> Well, you've got three options that I can think of:
>
> 1) use a Content-Length header,
> 2) use a Connection: close header to prevent keep-alive,
> 3) use chunked encoding to send responses of arbitrary length, but
> retaining keepalive.
Ah, you've made a false assumption, I'm afraid, which is that I can
do any of those things.
With define-http-resource, *Spiffy* defines the headers, and it
never asks the body. In fact, the headers are sent before the body
is run.
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/