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

Function isAbsoluteURLPath

lib/internal/inspector/network_http.js:26–30  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

24const kRequestUrl = Symbol('kRequestUrl');
25
26function isAbsoluteURLPath(path) {
27 return typeof path === 'string' &&
28 (StringPrototypeStartsWith(path, 'http://') ||
29 StringPrototypeStartsWith(path, 'https://'));
30}
31
32function getRequestURL(request, host) {
33 if (isAbsoluteURLPath(request.path)) {

Callers 1

getRequestURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected