From the wiki https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
If an authority component is present, then the path component must either be empty or begin with a slash (/).
So this should be correct uri
https://localhost
(notice no slash at the end)
However
>>> URI("http://local")
URI('http://local/')
From the wiki https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
So this should be correct uri
https://localhost(notice no slash at the end)
However