resource to download
path to store the downloaded content on local disk
connection to use e.g. FTP or HTTP. The default AutoProtocol will guess connection type and create a new instance for this call only.
import std.net.curl; download("https://httpbin.org/get", "/tmp/downloaded-http-file");
HTTP/FTP download to local file system.