-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R2 Object body
missing clone()
function type
#2453
Comments
For whatever reason, the standards decided the method on |
Thank you for your detailed response. Then I'll soon close this issue again. One more question if I may: Cause handing over the “split” stream is another step compared to the ease of use of the |
No, the original stream will be locked and is no longer directly usable. |
Thank you for this information. With that, I'll close this issue, as I do not expect the The workaround for using a r2 body twice is to use |
I wanted to use an r2object body twice.
I am aware that with a fetch() response, we can use
.clone()
to do this.When I tried,
r2object.body.clone()
types suggest that it's not present.Previous Statement:
When running the code, it does work as expected, giving me the feeling that the type definition forclone()
is missing.Correction: It appears that the
clone()
function indeed does not exist. But maybe it should.This is a minimal code:
The text was updated successfully, but these errors were encountered: