klyn.net.URL.effectivePort
property
public readonly property effectivePort as Int:
Description
Returns the explicit port or the scheme default port.
import klyn.net

url = URL("https://example.com")
print(url.effectivePort)