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 {
6363 type Initiator = Owner ;
6464 /** 单个授权信息 */
6565 type Grant = string ;
66+ /** RFC 2616 中定义的字节范围。 @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 */
67+ type Range = string ;
6668 /** 被授权者信息与权限信息 */
6769 interface Grants {
6870 /** 所有者的信息 */
@@ -1092,6 +1094,8 @@ declare namespace COS {
10921094 /** getObject 接口参数 */
10931095 interface GetObjectParams extends ObjectParams {
10941096 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 ;
10951099 /** 写入流,可以传本地文件写入流 */
10961100 Output ?: Stream ,
10971101 /** 请求里的 Url Query 参数 */
You can’t perform that action at this time.
0 commit comments