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

Function buildContentRange

github-actions/browserstack/set-browserstack-env.js:4902–4910  ·  view source on GitHub ↗
(rangeStart, rangeEnd, fullLength)

Source from the content-addressed store, hash-verified

4900 function urlHasHttpsScheme(url) {
4901 return typeof url === "string" && url[5] === ":" && url[0] === "h" && url[1] === "t" && url[2] === "t" && url[3] === "p" && url[4] === "s" || url.protocol === "https:";
4902 }
4903 function urlIsHttpHttpsScheme(url) {
4904 assert("protocol" in url);
4905 const protocol = url.protocol;
4906 return protocol === "http:" || protocol === "https:";
4907 }
4908 function simpleRangeHeaderValue(value, allowWhitespace) {
4909 const data = value;
4910 if (!data.startsWith("bytes")) {
4911 return "failure";
4912 }
4913 const position = { position: 5 };

Callers 1

schemeFetchFunction · 0.70

Calls 1

isomorphicEncodeFunction · 0.70

Tested by

no test coverage detected