Hi
I’m streaming JSON from a REST API successfully (it appears) using:
HTTP.open(:GET, url, headers) do http
for line in eachline(http)
print(line)
end
end
However, I getting this warning at the beginning of my output:
Warning: Reading one byte at a time from HTTP.Stream is inefficient.
│ Use: io = BufferedInputStream(http::HTTP.Stream) instead.
│ See: https://github.com/BioJulia/BufferedStreams.jl
└ @ HTTP.Streams ~/.julia/packages/HTTP/SN7VW/src/Streams.jl:240
I understand the gist of what it is saying, but I’m not sure how to implement the suggestion.
Any help would be much appreciated.
Kind regards