download

Downloads a file from the specified URL.

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.

  1. void download(URL url, void delegate(scope InputStream) callback, HTTPClient_ client_)
    void
    download
    (
    HTTPClient_ = void*
    )
    (,
    scope void delegate
    (
    scope InputStream
    )
    callback
    ,
    HTTPClient_ client_ = null
    )
  2. void download(string url, void delegate(scope InputStream) callback, HTTPClient_ client_)
  3. void download(string url, string filename)
  4. void download(URL url, NativePath filename)

Meta