How to download big files?

I use this code

body = HTTPoison.get!(link, ["User-Agent": "Elixir"], [recv_timeout: 300_000]).body
File.write!(file_path, body)
1 Like