* @see https://fetch.spec.whatwg.org/#http-scheme * @param {URL} url
(url)
| 1057 | * @param {URL} url |
| 1058 | */ |
| 1059 | function urlIsHttpHttpsScheme (url) { |
| 1060 | assert('protocol' in url) // ensure it's a url object |
| 1061 | |
| 1062 | const protocol = url.protocol |
| 1063 | |
| 1064 | return protocol === 'http:' || protocol === 'https:' |
| 1065 | } |
| 1066 | |
| 1067 | /** |
| 1068 | * @typedef {Object} RangeHeaderValue |
no test coverage detected