MCPcopy Index your code
hub / github.com/request/request / wrapRequestMethod

Function wrapRequestMethod

index.js:83–102  ·  view source on GitHub ↗
(method, options, requester, verb)

Source from the content-addressed store, hash-verified

81}
82
83function wrapRequestMethod (method, options, requester, verb) {
84 return function (uri, opts, callback) {
85 var params = initParams(uri, opts, callback)
86
87 var target = {}
88 extend(true, target, options, params)
89
90 target.pool = params.pool || options.pool
91
92 if (verb) {
93 target.method = verb.toUpperCase()
94 }
95
96 if (typeof requester === 'function') {
97 method = requester
98 }
99
100 return method(target, target.callback)
101 }
102}
103
104request.defaults = function (options, requester) {
105 var self = this

Callers 1

index.jsFile · 0.85

Calls 1

initParamsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…