upyun-http-signature
a simple lib for generate a signature for upyun http REST api
Installation
$ npm install upyun-http-signature
Usage
;
Arguments
http_method
: HTTP method(eg,'GET'
,'PUT'
, etc)path
: request pathcontent_length
: content-length of the request, if no request body, it should be0
password
: operator's passwordoperator
: upyun bucket's operator
In Node.js
var sign = ; console;
browserify)
In browser (with
you can see the demo for this.
License
MIT © Leigh Zhu