Docs for http-data

db4
Doug Coleman 2010-02-25 18:07:14 -06:00
parent 9bf7f56283
commit 18c0935b64
1 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,11 @@ HELP: http-get
{ $description "Downloads the contents of a URL." }
{ $errors "Throws an error if the HTTP request fails." } ;
HELP: http-data
{ $values { "url" "a " { $link url } " or " { $link string } } { "data" sequence } }
{ $description "Downloads the contents of a URL. To view the HTTP response, use " { $link http-get } "." }
{ $errors "Throws an error if the HTTP request fails." } ;
HELP: http-post
{ $values { "post-data" object } { "url" "a " { $link url } " or " { $link string } } { "response" response } { "data" sequence } }
{ $description "Submits an HTTP POST request." }
@ -61,7 +66,7 @@ HELP: with-http-request
ARTICLE: "http.client.get" "GET requests with the HTTP client"
"Basic usage involves passing a " { $link url } " and getting a " { $link response } " and data back:"
{ $subsections http-get }
{ $subsections http-get http-data }
"Utilities to retrieve a " { $link url } " and save the contents to a file:"
{ $subsections
download