Add documentation for data-procedure/c

(Style adjusted by Matthew.)

original commit: ddf0a334a8
This commit is contained in:
Scott Bell 2014-07-10 11:23:23 -07:00 committed by Matthew Flatt
parent 3b984b6566
commit cb907d7eec

View File

@ -83,8 +83,8 @@ additional headers given in @racket[headers] and the additional data
@racket[data]. @racket[data].
If @racket[data] is a procedure, it will be called once with a If @racket[data] is a procedure, it will be called once with a
procedure of one argument, which is a @racket[string] or procedure of one argument, which is a string or
@racket[byte-string] to be written to the request body using byte string to be written to the request body using
chunked transfer encoding. chunked transfer encoding.
If @racket[headers] does not contain an @litchar{Accept-Encoding} If @racket[headers] does not contain an @litchar{Accept-Encoding}
@ -151,6 +151,14 @@ response, which is why there is no @racket[#:closed?] argument like
} }
@defthing[data-procedure/c chaperone-contract?]{
Contract for a procedure that accepts a procedure of one
argument, which is a string or byte string:
@racket[(-> (-> (or/c bytes? string?) any/c) any/c)].
}
@section[#:tag "faq"]{Troubleshooting and Tips} @section[#:tag "faq"]{Troubleshooting and Tips}
@subsection{How do I send properly formatted POST form requests?} @subsection{How do I send properly formatted POST form requests?}