Changeset 17935 in project


Ignore:
Timestamp:
04/26/10 20:18:15 (9 years ago)
Author:
sjamaan
Message:

Document send-response in trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/spiffy

    r17771 r17935  
    393393the end of the log message automatically.
    394394
     395<procedure>(send-response #!key (code 200) (reason "OK") body (headers '()))</procedure>
     396
     397Easy way to send string data to the client, with additional headers.
     398It will add appropriate headers and will automatically detect {{HEAD}}
     399requests.
     400
    395401<procedure>(send-status code reason [message])</procedure>
    396402
    397403Easy way to send a page and a status code to the client.  The optional
    398404message is a string containing HTML to add in the body of the
    399 response. Example:
     405response. Some structure will be added around the message, so message
     406should only be the actual message you want to send.  Example:
    400407
    401408<examples><example>
     
    712719=== Changelog
    713720
     721* trunk Add {{send-response}} procedure
    714722* 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.
    715723* 4.3 Fix crash with extensionless files and nonempty extension handlers
Note: See TracChangeset for help on using the changeset viewer.