]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/http/download/download-docs.factor
http.download: use ``path`` not ``file`` in stack effect
[factor.git] / basis / http / download / download-docs.factor
index 76f3a19dc07a7edaa08d4934fc53c2cb7a8e79a4..093ce7b90545b70d707843c3dcb1e82aeaaac5b5 100644 (file)
@@ -11,13 +11,13 @@ HELP: download
 { $errors "Throws an error if the HTTP request fails." } ;
 
 HELP: download-to
-{ $values { "url" { $or url string } } { "file" "a pathname string" } { "path" "a pathname string" } }
+{ $values { "url" { $or url string } } { "path" "a pathname string" } }
 { $description "Downloads the contents of the URL to a file with the given pathname and returns the pathname." }
 { $notes "Use this to download the file every time." }
 { $errors "Throws an error if the HTTP request fails." } ;
 
 HELP: download-once-to
-{ $values { "url" { $or url string } } { "file" "a pathname string" } { "path" "a pathname string" } }
+{ $values { "url" { $or url string } } { "path" "a pathname string" } }
 { $description "If the file exists on disk, returns that pathname without downloading anything. Otherwise, downloads the contents of the URL to a file with the given pathname and returns the pathname." }
 { $notes "Use this if the contents of the URL are not expected to change." }
 { $errors "Throws an error if the HTTP request fails." } ;