Skip to content

Commit 775101a

Browse files
committed
add @gist for README
1 parent ecd580c commit 775101a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

qiniu/io.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ exports.putWithoutKey = putWithoutKey;
1616
exports.putFile = putFile;
1717
exports.putFileWithoutKey = putFileWithoutKey;
1818

19+
// @gist PutExtra
1920
function PutExtra(params, mimeType, crc32, checkCrc) {
2021
this.paras = params || {};
2122
this.mimeType = mimeType || null;
2223
this.crc32 = crc32 || null;
2324
this.checkCrc = checkCrc || 0;
2425
}
26+
// @endgist
2527

2628
function PutRet(hash, key) {
2729
this.hash = hash || null;

qiniu/rs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function getEncodedEntryUri(bucket, key) {
162162

163163

164164
// ----- token --------
165-
165+
// @gist PutPolicy
166166
function PutPolicy(scope, callbackUrl, callbackBody, returnUrl, returnBody,
167167
asyncOps, endUser, expires) {
168168
this.scope = scope || null;
@@ -174,6 +174,7 @@ function PutPolicy(scope, callbackUrl, callbackBody, returnUrl, returnBody,
174174
this.endUser = endUser || null;
175175
this.expires = expires || 3600;
176176
}
177+
// @endgist
177178

178179
PutPolicy.prototype.token = function(mac) {
179180
if (mac == null) {

0 commit comments

Comments
 (0)