# https://url.spec.whatwg.org/
# https://url.spec.whatwg.org/commit-snapshots/a46cb9188a48c2c9d80ba32a9b1891652d6b4900/#default-port
_DEFAULT_PORTS = {
"ftp": 21,
"file": None,
"http": 80,
"https": 443,
"ws": 80,
"wss": 443,
}
_SPECIAL_SCHEMES = set(_DEFAULT_PORTS.keys())