Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,25 @@ namespace Model
* the Content-Type header field.</p>
*/
inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
template<typename ContentEncodingT = Aws::String>
void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
template<typename ContentEncodingT = Aws::String>
HeadObjectResult& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
///@}

///@{
/**
* <p>ClickHouse extension: the
* <code>x-goog-stored-content-encoding</code> response header returned by
* Google Cloud Storage. Indicates the encoding the object is stored with,
* which differs from <code>Content-Encoding</code> when GCS applies
* decompressive transcoding</p>
*/
inline const Aws::String& GetGcsStoredContentEncoding() const { return m_gcsStoredContentEncoding; }
inline bool GcsStoredContentEncodingHasBeenSet() const { return m_gcsStoredContentEncodingHasBeenSet; }
///@}

///@{
/**
* <p>The language the content is in.</p>
Expand Down Expand Up @@ -658,6 +671,9 @@ namespace Model
Aws::String m_contentEncoding;
bool m_contentEncodingHasBeenSet = false;

Aws::String m_gcsStoredContentEncoding;
bool m_gcsStoredContentEncodingHasBeenSet = false;

Aws::String m_contentLanguage;
bool m_contentLanguageHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ HeadObjectResult& HeadObjectResult::operator =(const Aws::AmazonWebServiceResult
m_contentEncodingHasBeenSet = true;
}

// ClickHouse extension, GCS reports the stored (pre-transcoding) content encoding
const auto& gcsStoredContentEncodingIter = headers.find("x-goog-stored-content-encoding");
if (gcsStoredContentEncodingIter != headers.end()) {
m_gcsStoredContentEncoding = gcsStoredContentEncodingIter->second;
m_gcsStoredContentEncodingHasBeenSet = true;
}

const auto& contentLanguageIter = headers.find("content-language");
if(contentLanguageIter != headers.end())
{
Expand Down
Loading