MCPcopy Create free account
hub / github.com/angular/dev-infra / urlIsHttpHttpsScheme

Function urlIsHttpHttpsScheme

github-actions/saucelabs/set-saucelabs-env.js:4826–4830  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

4824 }
4825 function urlIsLocal(url) {
4826 assert("protocol" in url);
4827 const protocol = url.protocol;
4828 return protocol === "about:" || protocol === "blob:" || protocol === "data:";
4829 }
4830 function urlHasHttpsScheme(url) {
4831 return typeof url === "string" && url[5] === ":" && url[0] === "h" && url[1] === "t" && url[2] === "t" && url[3] === "p" && url[4] === "s" || url.protocol === "https:";
4832 }
4833 function urlIsHttpHttpsScheme(url) {

Callers 7

requestBadPortFunction · 0.70
finalizeAndReportTimingFunction · 0.70
mainFetchFunction · 0.70
httpRedirectFetchFunction · 0.70
addAllMethod · 0.70
putMethod · 0.70
""Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected