-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for downloading binary files using S3Client.getObject
This commit adds an `additionalHeaders` parameter to S3Client.getObject. The operation additionally receives support for the `Accept` header. When the header is provided with the value `application/octet-stream` the operation will, as a result, treat the response as binary content and return an ArrayBuffer. We decided to opt for the header approach, as it doesn't leak nor depend on k6 interfaces, and adopts a standard HTTP behavior, indicating to the server the type of content we expect in return, through the Accept header.
- Loading branch information
Showing
2 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters