Hi all! I'm trying to extract the `eTLD+1` out fro...
# ktor
v
Hi all! I'm trying to extract the
eTLD+1
out from a
Url
for example if I have the following url:
<https://www.google.co.uk/some-path>
, the
eTLD+1
I need would be
<http://google.co.uk|google.co.uk>
I'm using the
Url
type from
io.ktor.http
to construct the entire url atm. Does anyone know if there's any other data type or library that could provide this functionality, or any approach that could help me solve this? Any suggestions are appreciated, thank you 🙏