Function download
Downloads a file from the specified URL.
void download(HTTPClient_)
(
URL url,
scope void delegate(scope InputStream) callback,
HTTPClient_ client_ = null
);
void download(HTTPClient_)
(
string url,
scope void delegate(scope InputStream) callback,
HTTPClient_ client_ = null
);
void download
(
string url,
string filename
);
void download
(
URL url,
NativePath filename
);
Any redirects will be followed until the actual file resource is reached or if the redirection limit of 10 is reached. Note that only HTTP(S) is currently supported.