1 ! Copyright (C) 2024 Doug Coleman.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: calendar help.markup help.syntax io.pathnames kernel math
8 { $values { "url" { $or url string } } { "path" "a pathname string" } }
9 { $description "Downloads the contents of the URL to a file in the " { $link current-directory } " having the same file name and returns the pathname." }
10 { $errors "Throws an error if the HTTP request fails." } ;
13 { $values { "url" { $or url string } } { "file" "a pathname string" } { "path" "a pathname string" } }
14 { $description "Downloads the contents of the URL to a file with the given pathname and returns the pathname." }
15 { $errors "Throws an error if the HTTP request fails." } ;
18 ARTICLE: "http.download" "HTTP Download Utilities"
19 "The " { $vocab-link "http.download" } " vocabulary provides utilities for downloading files from the web."
21 "Utilities to retrieve a " { $link url } " and save the contents to a file:"
28 ABOUT: "http.download"