We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URI
download
1 parent ef9a169 commit 2413c48Copy full SHA for 2413c48
src/download.jl
@@ -93,7 +93,7 @@ from the rules of the HTTP.
93
- `headers` specifies headers to be used for the HTTP GET request
94
- any additional keyword args (`kw...`) are passed on to the HTTP request.
95
"""
96
-function download(url::AbstractString, local_path=nothing, headers=Header[]; update_period=1, kw...)
+function download(url::Union{URI, AbstractString}, local_path=nothing, headers=Header[]; update_period=1, kw...)
97
format_progress(x) = round(x, digits=4)
98
format_bytes(x) = !isfinite(x) ? "∞ B" : Base.format_bytes(round(Int, x))
99
format_seconds(x) = "$(round(x; digits=2)) s"
0 commit comments