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
Use u64 for R2 range requests #564
Conversation
Looks like Rust |
5375bc7
to
e767349
Compare
e767349
to
c9c7629
Compare
@himikof How does this look? I'm still waiting to hear back on the intended behavior of the range API. |
This change should fix the practical issue, allowing to use the API with large files. But I still think that the API does not really match the JS from the user point of view, and does not feel like a proper Rust API. In JS, you just specify either some non-empty subset of { Furthermore, this is actually not some Cloudlare-specific API: I would expect it to match the well-known semantics of simple HTTP As this PR already is a breaking change for this API (no implicit integer conversions in Rust), I ask to reconsider changing the Rust enum shape to remove this overlap, and better match the use cases/expectations. |
I'm waiting to hear back from the team on the actual behavior of these options. Without this information, I do not want to make a decision here. |
@himikof I've updated |
Closes #560
Waiting for guidance on the behavior of
limit
withoutoffset
. For now I'd like to continue to match the JavaScript behavior.