HttpUrl and AnyHttpUrl should have defaults for port when no port is specified #2450
davidolrik
started this conversation in
Feature Request
Replies: 1 comment 4 replies
-
I haven't looked in detail, but I think coincidentally #2447 might make this possible. My main concern is that converting an If we always populate the port, we might end up with
which would be annoying |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When creating a
HttpUrl
orAnyHttpUrl
, the url scheme is required which should dictate a port if you don't specify one.As it is now no port specified means
port
isNone
.I propose that we look at the url scheme, and return
80
forhttp
or443
forhttps
ifport
is not specified.Beta Was this translation helpful? Give feedback.
All reactions