Changeset 17961 in project


Ignore:
Timestamp:
04/28/10 22:23:38 (9 years ago)
Author:
Jim Ursetto
Message:

update spiffy doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/spiffy

    r17935 r17961  
    397397Easy way to send string data to the client, with additional headers.
    398398It will add appropriate headers and will automatically detect {{HEAD}}
    399 requests.
     399requests.  If BODY is {{#f}}, no body is sent and the {{content-length}}
     400header is set to zero.
    400401
    401402<procedure>(send-status code reason [message])</procedure>
     
    717718</enscript>
    718719
     720==== Network tweaks
     721
     722Spiffy does not activate Chicken's TCP buffering, which results in
     723extra traffic: one packet sent per header line.  With a TCP buffer
     724size greater than the total header length, all headers will be
     725coalesced into a single write; generally the response body will be
     726coalesced as well.  For example:
     727
     728 (tcp-buffer-size 2048)   ; from unit tcp
     729 (start-server)
     730
    719731=== Changelog
    720732
    721 * trunk Add {{send-response}} procedure
     733* trunk Add {{send-response}} procedure; flush output after request is handled
    722734* 4.4 Fix a problem with 304 "not modified", for which Safari incorrectly tries to read a content-body when a content-length is present.
    723735* 4.3 Fix crash with extensionless files and nonempty extension handlers
Note: See TracChangeset for help on using the changeset viewer.