rust-s3
rust-s3 copied to clipboard
Add put_object_with_headers method to bucket
trafficstars
Add two new methods to support uploading objects with custom HTTP headers on a per-request basis:
- put_object_with_content_type_and_headers: upload with explicit content-type and custom headers.
- put_object_with_headers: uploads an object with optional custom headers; uses
"application/octet-stream"as the defaultContent-Type.
Custom headers are attached to the PUT request via the headers method in the request trait. Following the same design approach as the existing put_object and put_object_with_content_type methods.
Use Case: Enable per-upload customization of HTTP headers such as Cache-Control, allowing control over caching.