View Source HttpDownloader (HttpDownloader v0.2.0)

Downloads remote file with progress bar.

Summary

Functions

Returns the last component of the path.

Downloads a remote file with progress bar.

Downloads a remote file with progress bar.

Downloads multiple remote files with progress bar and save them to provided destination.

Types

Functions

@spec basename_from_uri(url() | struct()) :: String.t()

Returns the last component of the path.

Link to this function

download(source_url, req_options \\ [])

View Source
@spec download(
  url(),
  keyword()
) :: {:ok, binary()} | {:error, any()}

Downloads a remote file with progress bar.

Currently built on top of the req package. For a list of available options, See https://hexdocs.pm/req/Req.html#new/1.

Link to this function

download!(source_url, req_options \\ [])

View Source
@spec download!(
  url(),
  keyword()
) :: binary()

Downloads a remote file with progress bar.

Currently built on top of the req package. For a list of available options, See https://hexdocs.pm/req/Req.html#new/1.

Link to this function

download_files(files, dst_path)

View Source
@spec download_files([url()], String.t()) :: [String.t()]

Downloads multiple remote files with progress bar and save them to provided destination.