Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/bun-types/s3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,25 @@ declare module "bun" {
*/
contentDisposition?: string | undefined;

/**
* The Content-Encoding header value.
* Specifies what content encodings have been applied to the object,
* for example to indicate that it has been compressed.
*
* @example
* // Setting gzip encoding
* const file = s3.file("data.json.gz", {
* contentEncoding: "gzip"
* });
*
* @example
* // Setting encoding when writing
* await s3.write("data.json.gz", compressedData, {
* contentEncoding: "gzip"
* });
*/
contentEncoding?: string | undefined;

/**
* By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects.
*
Expand Down