https://kotlinlang.org logo
#ktor
Title
# ktor
e

edenman

05/27/2020, 8:41 PM
the ktor Url class seems to accept bogus url strings when you construct with
Url("bogus")
(it turns that into http://localhost/bogus)….anybody know of a good kmp way to validate a Url?
e

e5l

05/28/2020, 1:15 PM
Hi @edenman, yep it looks like the
Url
is wokring like
takeFrom
builder. We have the url parser inside ktor, could you file an issue for this? We can expose it 🙂
👍 1
Btw PRs are always welcome 🙂
e

edenman

05/28/2020, 6:38 PM
filed https://github.com/ktorio/ktor/issues/1903 lmk what you think of the proposed API
e

e5l

05/29/2020, 1:00 PM
Thanks!
2 Views