ContentSettings Class

Used to store the content settings of a file.

Inheritance
builtins.object
ContentSettings

Constructor

ContentSettings(content_type=None, content_encoding=None, content_language=None, content_disposition=None, cache_control=None, content_md5=None)

Parameters

Name Description
content_type
default value: None
content_encoding
default value: None
content_language
default value: None
content_disposition
default value: None
cache_control
default value: None
content_md5
default value: None

Variables

Name Description
content_type
str

The content type specified for the file. If no content type was specified, the default content type is application/octet-stream.

content_encoding
str

If content_encoding has previously been set for the file, that value is stored.

content_language
str

If content_language has previously been set for the file, that value is stored.

content_disposition
str

content_disposition conveys additional information about how to process the response payload, and also can be used to attach additional metadata. If content_disposition has previously been set for the file, that value is stored.

cache_control
str

If cache_control has previously been set for the file, that value is stored.

content_md5
str

If the content_md5 has been set for the file, this response header is stored so that the client can check for message content integrity.