How to use the globalAgent function from http
Find comprehensive JavaScript http.globalAgent code examples handpicked from public code repositorys.
180 181 182 183 184 185 186 187 188
Return another `http.Agent` instance to "pass through" the responsibility for that HTTP request to that agent: ```js agent(function (req, opts) { return opts.secureEndpoint ? https.globalAgent : http.globalAgent; }); ```
0
1
0
+ 3 other calls in file
http.createServer is the most popular function in http (322 examples)