download-once-as ( url path -- path )
HTTP Download Utilities

Prev:download-once-into ( url directory -- path )
Next:download-outdated ( url duration -- path )


Vocabulary
http.download

Inputs
urlan url or a string
patha pathname string


Outputs
patha pathname string


Word 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.

Definition