MCPcopy
hub / github.com/webpack/webpack / doRequest

Function doRequest

lib/schemes/HttpUriPlugin.js:62–66  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

60 * @returns {void}
61 */
62 const doRequest = (socket) => {
63 request
64 .get(url, { ...options, ...(socket && { socket }) }, callback)
65 .on("error", eventEmitter.emit.bind(eventEmitter, "error"));
66 };
67
68 if (proxy) {
69 const { hostname: host, port } = new URL(proxy);

Callers 1

proxyFetchFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected