You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently ObjectBody.responseBody() is a more CPU efficient way to stream the body of an R2 object, but it uses the "legacy?" ResponseBody structure and no alternative exist for when the http feature is enabled that uses http-body traits.
Maybe exposing a ReadableStream from ObjectBody with some kind of into_inner() that can be used with worker::Body::new() constructor could be the new API.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description
Currently ObjectBody.responseBody() is a more CPU efficient way to stream the body of an R2 object, but it uses the "legacy?" ResponseBody structure and no alternative exist for when the
http
feature is enabled that useshttp-body
traits.Maybe exposing a
ReadableStream
fromObjectBody
with some kind ofinto_inner()
that can be used with worker::Body::new() constructor could be the new API.The text was updated successfully, but these errors were encountered: