MCPcopy
hub / github.com/willnewii/qiniuClient / get

Method get

src/renderer/api/API.js:22–30  ·  view source on GitHub ↗
(url, param)

Source from the content-addressed store, hash-verified

20 }
21
22 get(url, param) {
23 if (param)
24 url = url + '?' + Qs.stringify(param);
25
26 if (/(qiniu.com|qbox.me)/g.test(url)) { // 七牛api
27 this.setAuthorization(_httpAuthorization(url));
28 }
29 return this._request(url, 'get');
30 }
31
32 setAuthorization(authorization) {
33 this.config.headers.Authorization = authorization;

Callers 8

getDomainsMethod · 0.45
getTotalMethod · 0.45
getCOSMethod · 0.45
initCOSMethod · 0.45
getBucketsFunction · 0.45
getFunction · 0.45
[types.setup.init]Function · 0.45
_requestMethod · 0.45

Calls 3

setAuthorizationMethod · 0.95
_requestMethod · 0.95
_httpAuthorizationFunction · 0.90

Tested by

no test coverage detected