rust-s3 icon indicating copy to clipboard operation
rust-s3 copied to clipboard

Allow specifying header on a per-request basis

Open AdamGS opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I want to be able to specify headers on a per request headers, in my specific use cases those are if-none-match and if-match as different object require different handling but I can imagine it being useful for other usescases (content-type being an obvious one).

Describe the solution you'd like have _with_headers variants for some functions that allow for specifying a second header override (in addition to the bucket level additional_headers

Describe alternatives you've considered Another possibility is storing some closure/middleware in Bucket that will check requests on their way out and mutate them as required.

AdamGS avatar Dec 01 '24 23:12 AdamGS