Hello. I'm trying to use the ktor client, and in t...
# ktor
o
Hello. I'm trying to use the ktor client, and in the samples I found the following call:
Copy code
val call = call {
        url(URL(url))
        method = HttpMethod.Get
}
Where is
URL
defined? IntelliJ is having a hard time finding it.
e
Hi @obobo, could you send me the link?
e
It looks like the url from
java.net.*
o
I tried that, it doesn't match the signature
Let me try some more
It seems to want a URLBuilder, which is a more complex object
e
You could try
URLBuilder(url)
o
Oh, nevermind, it was missing an explicit extension import
🤦‍♂️ 1
🕵️‍♂️ 1
e
Maybe it could be easier with
*
imports