File tree 4 files changed +24
-3
lines changed
4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
1
name = " FileIO"
2
2
uuid = " 5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
3
- version = " 1.16.5 "
3
+ version = " 1.16.6 "
4
4
5
5
[deps ]
6
6
Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7
7
Requires = " ae029012-a4dd-5104-9daa-d747884805df"
8
8
UUIDs = " cf7118a7-6976-5b1a-9a39-7adc72f591a4"
9
9
10
+ [weakdeps ]
11
+ HTTP = " cd3eb016-35fb-5094-929b-558a96fad6f3"
12
+
13
+ [extensions ]
14
+ HTTPExt = " HTTP"
15
+
10
16
[compat ]
11
17
Pkg = " <0.0.1, 0.7, 1"
12
18
Requires = " 1"
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ PNGFiles = "f57f5aa1-a3ce-4bc8-8ab9-96f992907883"
6
6
7
7
[compat ]
8
8
Documenter = " 1"
9
- HTTP = " 0.9"
9
+ HTTP = " 0.9, 1 "
Original file line number Diff line number Diff line change
1
+ module HTTPExt
2
+
3
+ if isdefined (Base, :get_extension )
4
+ using FileIO
5
+ using HTTP
6
+ else
7
+ using .. FileIO
8
+ using .. HTTP
9
+ end
10
+
11
+ FileIO. load (uri:: HTTP.URI ) = load (IOBuffer (HTTP. get (uri). body))
12
+
13
+ end # module
Original file line number Diff line number Diff line change @@ -64,11 +64,13 @@ include("registry.jl")
64
64
"""
65
65
FileIO
66
66
67
+ @static if ! isdefined (Base, :get_extension )
67
68
function __init__ ()
68
69
@require HTTP= " cd3eb016-35fb-5094-929b-558a96fad6f3" begin
69
- load (uri :: HTTP.URI ) = load ( IOBuffer (HTTP . get (uri) . body) )
70
+ include ( " ../ext/HTTPExt.jl " )
70
71
end
71
72
end
73
+ end # @static
72
74
73
75
if VERSION >= v " 1.4.2" # https://github.com/JuliaLang/julia/pull/35378
74
76
include (" precompile.jl" )
You can’t perform that action at this time.
0 commit comments