Loski
03/31/2022, 12:28 AMLoski
03/31/2022, 12:31 AMVitali
03/31/2022, 12:34 AMLoski
03/31/2022, 12:39 AMVitali
03/31/2022, 12:47 AMLoski
03/31/2022, 12:51 AMVitali
03/31/2022, 12:59 AMVitali
03/31/2022, 1:00 AMVitali
03/31/2022, 1:01 AMVitali
03/31/2022, 1:02 AMLoski
03/31/2022, 1:03 AMLoski
03/31/2022, 1:03 AMErwin
03/31/2022, 1:11 AMVitali
04/01/2022, 9:40 PMr2_public_beta_bindings
sometime late next week (I'm not 100% sure when we'll allow such scripts - I'll keep you updated).
Please provide feedback. There's a few spots I've spotted:
R2Error
stack
is any
instead of string (& in fact `name`/`message`/`stack` can probably be elided because of inheritance? not sure).
R2Error
code
needs a documentation note. This code is the same code that the Cloudflare V4 API that will be documented.
onlyIf
needs a documentation note. The Headers
it accepts require HTTP header names (`IfModifiedSince`/`IfNotModifiedSince` etc).
R2Object
writeHttpMetadata
is missing a note. It writes out the headers from httpMetadata
as you would expect (content-type, cache-control, etc)
Same goes for httpMetadata
on put (i.e. cache-control
-> cacheControl
, expires
-> cacheExpiry
). Note that S3 uses the HTTP "Expires" name but I think that confuses people into thinking that has something to do with lifecycle. It does not. It's simply the cache expiry metadata you associate with an object.
R2PutOptions
has md5
and sha1
as optionals to specify the digest of the body, but those are mutually exclusive and the type needs to be reified to reflect that (the runtime enforces this, it's just not reflected in the type system).
Enjoy everyone!Vitali
04/01/2022, 9:44 PMJames
04/01/2022, 9:53 PMput
it seems then - woot!Walshy | Pages
04/01/2022, 10:11 PMraeesbhatti
04/01/2022, 10:13 PMIsaac McFadyen | YYZ01
04/01/2022, 10:25 PMIsaac McFadyen | YYZ01
04/01/2022, 10:25 PMVitali
04/01/2022, 11:57 PMReadableStream
must be known. For example, incoming request with a content-length
and you're forwarding along the body. Or the response body of a fetch that has a content-length
. Or the readable half of a FixedLengthStream
transform stream.Vitali
04/01/2022, 11:58 PMJames
04/02/2022, 12:00 AMWalshy | Pages
04/02/2022, 12:00 AMWalshy | Pages
04/02/2022, 12:03 AMr2_public_beta_bindings
is a compat flag right ok, makes senseJames
04/02/2022, 12:04 AMVitali
04/02/2022, 12:04 AMr2_public_beta_bindings
is on by default but for those that need to upgrade the compat date but keep the old bindings, you can opt to the old bindings via r2_internal_beta_bindings
. Anyone starting should use the public beta bindings. The old ones are not as complete and have edges.Walshy | Pages
04/02/2022, 12:04 AMVitali
04/02/2022, 12:05 AM