Skip to content

Commit 72b9936

Browse files
committed
ts: add changHeaders
1 parent 3368e93 commit 72b9936

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,17 @@ export declare namespace rs {
496496
*/
497497
changeMime(bucket: string, key: string, newMime: string, callback: callback): void;
498498

499+
/**
500+
* 修改文件的Headers
501+
* @see TODO
502+
*
503+
* @param bucket 空间名称
504+
* @param key 文件名称
505+
* @param headers Headers对象
506+
* @param callback
507+
*/
508+
changeHeaders(bucket: string, key: string, headers: { [k: string]: string }, callback: callback): void;
509+
499510
/**
500511
* 移动或重命名文件,当bucketSrc==bucketDest相同的时候,就是重命名文件操作
501512
* @see https://developer.qiniu.com/kodo/api/1288/move
@@ -658,6 +669,14 @@ export declare namespace rs {
658669
*/
659670
function changeMimeOp(bucket: string, key: string, newMime: string): string;
660671

672+
/**
673+
*
674+
* @param bucket
675+
* @param key
676+
* @param headers
677+
*/
678+
function changeHeadersOp(bucket: string, key: string, headers: { [k: string]: string }): string;
679+
661680
/**
662681
*
663682
* @param bucket

0 commit comments

Comments
 (0)