Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
google::cloud::storage::AcceptEncoding Struct Reference

Modify the accepted encodings. More...

#include <google/cloud/storage/well_known_headers.h>

Static Public Member Functions

static char const * header_name ()
 

Detailed Description

Modify the accepted encodings.

When using HTTP, GCS decompresses gzip-encoded objects by default:

https://cloud.google.com/storage/docs/transcoding

Setting this option to gzip disables automatic decompression. This can be useful for applications wanting to operate with the compressed data. Setting this option to identity, or not setting this option, returns decompressed data.

Note
Note that decompressive transcoding only apply to objects that are compressed with gzip and have their content_encoding() attribute set accordingly. At the time of this writing GCS does not decompress objects stored with other compression algorithms, nor does it detect the object compression based on the object name or its contents.
See also
AcceptEncodingGzip() is a helper function to disable decompressive encoding.

Member Function Documentation

◆ header_name()

static char const * google::cloud::storage::AcceptEncoding::header_name ( )
inlinestatic