Skip to content

Commit 868880f

Browse files
committed
add comment for QNMetaDemo to set x-qn-meta-* [ci skip]
1 parent 722b1df commit 868880f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/QNMetaDemo.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
import java.util.Iterator;
1010
import java.util.Map;
1111

12+
/**
13+
* 自定义文件元信息demo(x-qn-meta-*)
14+
*
15+
* 接口
16+
* POST /setmeta/<EncodedEntryURI>[/<x-qn-meta-MetaKey>/<EncodedMetaValue>][/cond/Encoded(condKey1=condVal1&condKey2=condVal2)]
17+
* Host: rs-<region>.qiniu.com
18+
* Content-Type: application/x-www-form-urlencoded
19+
* Authorization: Qbox 鉴权
20+
*
21+
* 注意:
22+
* meta-key,key不能设置为中文,不允许为空;
23+
* 新的metas会完全替换掉以前的metas,注意, 是完全覆盖;
24+
* 如果请求url中没有 [<x-qn-meta-MetaKey>/<EncodedMetaValue>],则表示要删除所有metas;
25+
*
26+
*/
1227
public class QNMetaDemo {
1328
//设置好账号的ACCESS_KEY和SECRET_KEY
1429
private static final String ACCESS_KEY = "填写你们自己的AK";

0 commit comments

Comments
 (0)