MCPcopy Index your code
hub / github.com/nodejs/node / get

Function get

lib/http.js:118–122  ·  view source on GitHub ↗

* Makes a `GET` HTTP request. * @param {string | URL} url * @param {HTTPRequestOptions} [options] * @param {Function} [cb] * @returns {ClientRequest}

(url, options, cb)

Source from the content-addressed store, hash-verified

116 * @returns {ClientRequest}
117 */
118function get(url, options, cb) {
119 const req = request(url, options, cb);
120 req.end();
121 return req;
122}
123
124/**
125 * Lazy loads WebSocket, CloseEvent and MessageEvent classes from undici

Callers

nothing calls this directly

Calls 5

getOptionValueFunction · 0.85
requestFunction · 0.70
lazyUndiciFunction · 0.70
requireFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected