Response Result of the Request for Downloading an Object
Namespace
obs.ObjectStream
Parameter Description
|
Field |
Type |
Description |
|---|---|---|
|
response |
object |
If loadStreamInMemory is set to False and downloadPath is None in the request, this field is returned and indicates a readable stream. You can read object content from it. |
|
buffer |
object |
If loadStreamInMemory is set to True in the request, this field is returned and indicates the data stream in the memory. |
|
size |
int |
If loadStreamInMemory is set to True in the request, this field is returned and indicates the size of the data stream. |
|
url |
str |
If loadStreamInMemory is set to False and downloadPath is not None, this field is returned and indicates the download path. |
|
deleteMarker |
bool |
Whether the deleted object is a delete marker |
|
storageClass |
str |
Storage class of the object |
|
accessContorlAllowOrigin |
str |
If origin in the request meets the CORS rules of the bucket, allowedOrigin in the CORS rules is returned. |
|
accessContorlAllowHeaders |
str |
If requestHeaders in the request meets the CORS rules of the bucket, allowedHeader in the CORS rules is returned. |
|
accessContorlAllowMethods |
str |
allowedMethod in the CORS rules of the bucket |
|
accessContorlExposeHeaders |
str |
exposeHeader in the CORS rules of the bucket |
|
accessContorlMaxAge |
int |
maxAgeSecond in the CORS rules of the bucket |
|
contentLength |
int |
Object size in bytes |
|
cacheControl |
str |
Cache-Control header in the response |
|
contentDisposition |
str |
Content-Disposition header in the response |
|
contentEncoding |
str |
Content-Encoding header in the response |
|
contentLanguage |
str |
Content-Language header in the response |
|
contentType |
str |
MIME type of the object |
|
expires |
str |
Expires header in the response |
|
lastModified |
str |
Time when the last modification was made to the object |
|
etag |
str |
Object ETag |
|
versionId |
str |
Object version ID |
|
restore |
str |
Restore status of the object in the OBS Archive storage class. If the object is not in the OBS Archive storage class, the value is None. |
|
expiration |
str |
Expiration details |
|
sseKms |
str |
SSE-KMS algorithm |
|
sseKmsKey |
str |
Master key used in SSE-KMS decryption |
|
sseC |
str |
SSE-C algorithm |
|
sseCKeyMd5 |
str |
MD5 value of the key used in SSE-C decryption |
|
websiteRedirectLocation |
str |
Location where the object is redirected to, when the bucket is configured with website hosting. |
If response is not None, you must call its close method to close the connection after reading the data.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.