MCPcopy Index your code
hub / github.com/scality/cloudserver / _requestWrapper

Function _requestWrapper

lib/utilities/request.js:145–155  ·  view source on GitHub ↗
(method, url, options, callback)

Source from the content-addressed store, hash-verified

143}
144
145function _requestWrapper(method, url, options, callback) {
146 let cb = callback;
147 const opts = { method };
148
149 if (typeof options === 'object') {
150 Object.assign(opts, options);
151 } else if (typeof options === 'function') {
152 cb = options;
153 }
154 return request(url, opts, cb);
155}
156
157module.exports = {
158 request,

Callers 1

request.jsFile · 0.85

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected