Object function reference

download

A reference entry for download

Object function · HTTP

download(string path) ⇒ boolean

Downloads the HTTP object's base URL to a local path. An optional URL override can be supplied with the two-argument form download(url, path). Returns true only when the response has a successful 2xx status.