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

Function getRequestURL

lib/internal/inspector/network_http.js:32–37  ·  view source on GitHub ↗
(request, host)

Source from the content-addressed store, hash-verified

30}
31
32function getRequestURL(request, host) {
33 if (isAbsoluteURLPath(request.path)) {
34 return request.path;
35 }
36 return `${request.protocol}//${host}${request.path}`;
37}
38
39// Convert a Headers object (Map<string, number | string | string[]>) to a plain object (Map<string, string>)
40const convertHeaderObject = (headers = kEmptyObject) => {

Callers 1

onClientRequestCreatedFunction · 0.85

Calls 1

isAbsoluteURLPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…