Changeset 15566 in project


Ignore:
Timestamp:
08/25/09 18:17:03 (10 years ago)
Author:
sjamaan
Message:

Add docs about raw data string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/http-client

    r15125 r15566  
    5555constructed around the URI, using the {{GET}} method.
    5656
    57 {{writer}} can be either {{#f}} (in which case nothing is written), an
    58 alist (in which case the data is written out as using
    59 www-form-urlencoding, useful for POST requests), or a procedure that
    60 accepts a port and writes the response data to it.
     57{{writer}} can be either {{#f}} (in which case nothing is written), a
     58string containing the raw data to send, an alist (in which case the
     59data is written out as using www-form-urlencoding, useful for POST
     60requests), or a procedure that accepts a port and writes the response
     61data to it.  If you supply a procedure, do not forget to set the
     62{{content-length}} header!  In the other cases, the length is
     63calculated and the header automatically set for you.
    6164
    6265{{reader}} is a procedure which accepts a port and reads out the data.
Note: See TracChangeset for help on using the changeset viewer.