Marc Knaup
06/26/2019, 10:54 AMUrl
is only to be used for HTTP-based URLs?
It messes up URLs with other schemes like file
or custom
.
(It should probably be called HttpUrl
in that case 🤔)e5l
06/26/2019, 12:52 PMURLProtocol
) is data class with a public constructor.Marc Knaup
06/26/2019, 12:55 PMUrl("<mailto:marc@knaup.io>").toString() // "<mailto://localhost/marc@knaup.io>"
Url("file:///var/www").toString() // "<file://var/www>"
e5l
06/26/2019, 12:56 PMMarc Knaup
06/26/2019, 12:57 PMe5l
06/26/2019, 12:57 PMMarc Knaup
06/26/2019, 1:01 PM