Companion
object Companion
Functions
Link copied to clipboard
Returns 80 if scheme.equals("http")
, 443 if scheme.equals("https")
and -1 otherwise.
Link copied to clipboard
Returns an HttpUrl for this if its protocol is http
or https
, or null if it has any other protocol.
Returns a new HttpUrl
representing url
if it is a well-formed HTTP or HTTPS URL, or null if it isn't.