X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fhttp%2Fclient%2Fclient-docs.factor;fp=basis%2Fhttp%2Fclient%2Fclient-docs.factor;h=f112a56816c8d76affe8f62756689b2d803081e9;hp=fcedb182c032ab0c04b926558a391a9bc263732b;hb=3f30c7bffc2ec0124f9380316f181045b725d4c8;hpb=96db3e0218795b6b40fb3cf1e760ec8339533c13 diff --git a/basis/http/client/client-docs.factor b/basis/http/client/client-docs.factor index fcedb182c0..f112a56816 100644 --- a/basis/http/client/client-docs.factor +++ b/basis/http/client/client-docs.factor @@ -43,21 +43,6 @@ HELP: { $description "Constructs an HTTP TRACE request for the requested URL." } { $notes "The request can be passed on to " { $link http-request } ", possibly after cookies and headers are set." } ; -HELP: download -{ $values { "url" { $or url string } } } -{ $description "Downloads the contents of the URL to a file in the " { $link current-directory } " having the same file name." } -{ $errors "Throws an error if the HTTP request fails." } ; - -HELP: download-to -{ $values { "url" { $or url string } } { "file" "a pathname string" } } -{ $description "Downloads the contents of the URL to a file with the given pathname." } -{ $errors "Throws an error if the HTTP request fails." } ; - -HELP: ?download-to -{ $values { "url" { $or url string } } { "file" "a pathname string" } } -{ $description "Version of " { $link download-to } " that only downloads if " { $snippet "file" } " does not exist." } -{ $errors "Throws an error if the HTTP request fails." } ; - HELP: http-get { $values { "url" { $or url string } } { "response" response } { "data" sequence } } { $description "Downloads the contents of a URL." } @@ -171,12 +156,8 @@ ARTICLE: "http.client.get" "GET requests with the HTTP client" http-get http-get* } -"Utilities to retrieve a " { $link url } " and save the contents to a file:" -{ $subsections - download - download-to - ?download-to -} +"To download to a file, see the " { $link "http.download" } " vocabulary." + "Advanced usage involves constructing a " { $link request } ", which allows " { $link "http.cookies" } " and " { $link "http.headers" } " to be set:" { $subsections