OBS BrowserJS SDK-下载对象:返回结果(InterfaceResult)

时间:2025-02-12 14:54:26

返回结果(InterfaceResult)

字段名

类型

说明

RequestId

String

OBS服务端返回的请求ID。

DeleteMarker

String

标识删除的对象是否是删除标记。

LastModified

String

对象的最近一次修改时间。

ContentLength

String

对象数据的长度。

CacheControl

String

响应中的Cache-Control头。

ContentDisposition

String

响应中的Content-Disposition头。

ContentEncoding

String

响应中的Content-Encoding头

ContentLanguage

String

响应中的Content-Language头

ContentType

String

对象的MIME类型。

Expires

String

响应中的Expires头。

ETag

String

对象的ETag值。

VersionId

String

对象的版本号。

WebsiteRedirectLocation

String

当桶设置了Website配置,该参数指明对象的重定向地址。

StorageClass

String

对象的存储类型,当对象存储类型是标准存储时,该值为空。

Restore

String

归档存储类型对象的恢复状态。

Expiration

String

对象的详细过期信息。

Content

String

ArrayBuffer

Blob

Object

对象的内容。当SavaByType未设置或者为text时该值为String对象;当SavaByType为arraybuffer时该值为ArrayBuffer对象;当SaveByType为blob时该值为Blob对象;当SaveByType为file时该值为包含下载该对象的URL(有效期3600秒)的Object对象。

Metadata

Object

对象自定义元数据。需要在桶的CORS配置中增加允许响应中可返回的附加头域。例如,新增x-amz-meta-property1以获取自定义元数据property1。

support.huaweicloud.com/api-obs_browserjs_sdk_api_zh/obs_34_0404.html