function urlIsHttpHttpsScheme (url) {
  assert('protocol' in url) // ensure it's a url object

  const protocol = url.protocol

  return protocol === 'http:' || protocol === 'https:'
}
@see https://fetch.spec.whatwg.org/#http-scheme
@param {URL} url