(rangeStart, rangeEnd, fullLength)
| 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 }; |
no test coverage detected