Changeset 29919 in project


Ignore:
Timestamp:
10/13/13 20:45:56 (8 years ago)
Author:
sjamaan
Message:

Update intarweb docs to mention that read-request/read-response can now return #f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/intarweb

    r29884 r29919  
    9292Reads a request object from the given input-port.  An optional request
    9393body can be read from the request-port after calling this procedure.
     94
     95If an end of file is returned before anything can be read (when the
     96connection was closed by the remote end before it sent the request),
     97{{#f}} is returned.  In case of an invalid HTTP request line, an
     98exception of type (exn http unknown-protocol-line) is raised.
    9499
    95100<parameter>(request-parsers [LIST])</parameter>
     
    277282be read from the response-port after calling this procedure.
    278283
     284If an end of file is returned before anything can be read (when the
     285connection was closed by the remote end before it sent the response),
     286{{#f}} is returned.  In case of an invalid HTTP response line, an
     287exception of type (exn http unknown-protocol-line) is raised.
     288
    279289<parameter>(response-parsers [LIST])</parameter>
    280290
     
    10291039=== Changelog
    10301040
    1031 * trunk Fix {{request-has-message-body?}} predicate (thanks to Brian St. Pierre). Improve performance of {{read-string!}} on chunked ports.
     1041* trunk Fix {{request-has-message-body?}} predicate (thanks to Brian St. Pierre). Improve performance of {{read-string!}} on chunked ports.  Return #f instead of raising "unknown protocol" when no request/response can be read at all.
    10321042* 1.1 Add HSTS support.  Improve robustness of {{finish-request-body}} and {{finish-response-body}} somewhat.
    10331043* 1.0 Disable HTTP/0.9 support for security reasons.  Write request and response initial line in one burst, to prevent problems with network output.  Add {{finish-request-body}} and {{finish-response-body}} procedures.  Fix edge case in reading of chunked data when combined with {{peek-char}} (reported by "sz0ka" on IRC)
Note: See TracChangeset for help on using the changeset viewer.