JuliaServices / CloudStore.jl

A simple, consistent, and performant API for interacting with common cloud storage abstractions
Other
16 stars 8 forks source link

Coordinate with user-provided response body buffers #19

Closed quinnj closed 1 year ago

quinnj commented 1 year ago

With https://github.com/JuliaWeb/HTTP.jl/issues/936, we want to allow users to provide their own buffer into which we write the response body directly. We want to coordinate what that solution looks like for CloudStore.get. Currently, we have an "output" argument that can be an IO, file name as a string, or nothing in which case we allocate and return the response body in memory. We might want to provide another option, maybe even an AbstractVector{UInt8} itself that we use to write the response body into.

quinnj commented 1 year ago

Implemented in https://github.com/JuliaServices/CloudStore.jl/pull/37