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 @@ -68,6 +68,8 @@ declare namespace COS {
68
68
type Initiator = Owner ;
69
69
/** 单个授权信息 */
70
70
type Grant = string ;
71
+ /** RFC 2616 中定义的字节范围。 @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 */
72
+ type Range = string ;
71
73
/** 被授权者信息与权限信息 */
72
74
interface Grants {
73
75
/** 所有者的信息 */
@@ -1150,6 +1152,8 @@ declare namespace COS {
1150
1152
/** getObject 接口参数 */
1151
1153
interface GetObjectParams extends ObjectParams {
1152
1154
BodyType ?: 'text' | 'blob' | 'arraybuffer' ,
1155
+ /** 下载对象的指定范围字节。参见 RFC 2616 中定义的字节范围,see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35。范围值必须使用 bytes=first-last 格式且仅支持单一范围,不支持多重范围。first 和 last 都是基于0开始的偏移量。例如 bytes=0-9 表示下载对象的开头10个字节的数据 ,如果不指定,则表示下载整个对象 */
1156
+ Range ?: Range ;
1153
1157
/** 写入流,可以传本地文件写入流 */
1154
1158
Output ?: Stream ,
1155
1159
/** 请求里的 Url Query 参数,传入该值中的 key/value 将会被 URLEncode */
You can’t perform that action at this time.
0 commit comments