MCPcopy Create free account
hub / github.com/nodejs/node / urlIsHttpHttpsScheme

Function urlIsHttpHttpsScheme

deps/undici/undici.js:5798–5802  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

5796 }
5797 __name(urlHasHttpsScheme, "urlHasHttpsScheme");
5798 function urlIsHttpHttpsScheme(url) {
5799 assert("protocol" in url);
5800 const protocol = url.protocol;
5801 return protocol === "http:" || protocol === "https:";
5802 }
5803 __name(urlIsHttpHttpsScheme, "urlIsHttpHttpsScheme");
5804 function simpleRangeHeaderValue(value, allowWhitespace) {
5805 const data = value;

Callers 5

requestBadPortFunction · 0.70
finalizeAndReportTimingFunction · 0.70
mainFetchFunction · 0.70
fetchFinaleFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected