feat(services/gcs): Impl content-encoding support for GCS stat, write and presign#5610
Conversation
Content-Encoding for presign has not been tested yet though
|
Do I need to add some other tests? So far I have tested this with my own program and |
We have integration tests for gcs, so it should fine as is. |
|
I just realized that although I've added support for I wonder if me adding /// Set the content encoding of the operation
pub fn content_encoding(self, v: &str) -> Self {
self.map(|(args, dur)| (args.with_content_encoding(v), dur))
} |
It's looks fine to me. Feel free to add in this PR directly. |
|
I will add it, but I'm not able to test it, because the Gcs service ACL logic is problematic, and I get an error like this when testing: It turns out that the XML API predefined ACLs uses kebab casing instead of camel casing, and thus |
|
Okay, I tested In my opinion this PR is ready to be merged |
Thanks for making it easy to contribute :) |
Which issue does this PR close?
Closes #5607
Rationale for this change
Explained in the issue
What changes are included in this PR?
content_encodingsupport for Gcs forstat,writeandpresign.stat_has_content_encoding: trueandwrite_with_content_encoding: trueto capabilities ofGcsBackendcontentEncodingcheck totest_deserialize_get_object_json_responseNOTE: I haven't tested
presignyet with these changes yet, which is why I addedWIP.Are there any user-facing changes?
If the users were relying on
Gcsservice to ignorecontent_encoding, then they might have to update their code.