File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ declare namespace COS {
63
63
type Initiator = Owner ;
64
64
/** 单个授权信息 */
65
65
type Grant = string ;
66
+ /** RFC 2616 中定义的字节范围。 @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 */
67
+ type Range = string ;
66
68
/** 被授权者信息与权限信息 */
67
69
interface Grants {
68
70
/** 所有者的信息 */
@@ -1092,6 +1094,8 @@ declare namespace COS {
1092
1094
/** getObject 接口参数 */
1093
1095
interface GetObjectParams extends ObjectParams {
1094
1096
BodyType ?: 'text' | 'blob' | 'arraybuffer' ,
1097
+ /** 下载对象的指定范围字节。参见 RFC 2616 中定义的字节范围,see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35。范围值必须使用 bytes=first-last 格式且仅支持单一范围,不支持多重范围。first 和 last 都是基于0开始的偏移量。例如 bytes=0-9 表示下载对象的开头10个字节的数据 ,如果不指定,则表示下载整个对象 */
1098
+ Range ?: Range ;
1095
1099
/** 写入流,可以传本地文件写入流 */
1096
1100
Output ?: Stream ,
1097
1101
/** 请求里的 Url Query 参数 */
You can’t perform that action at this time.
0 commit comments