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

rsetkus

12/21/2020, 9:23 PM
Hi. As far as I can understand Ktor features are split into separate libraries. What is the way to find out exact gradle dependency of a feature? Documentation doesn’t mention it.
l

louiscad

12/22/2020, 4:23 AM
Hello, you should have what you're looking for here: https://ktor.io/docs/artifacts.html
r

rsetkus

12/22/2020, 7:52 AM
@louiscad still no luck. It redirects to https://ktor.io/docs/gradle.html and don't see a list of artifacts.
d

duuusha

12/22/2020, 8:05 AM
@rsetkus hi, currently we are working on adding information about feature artifacts to our docs. If you don’t see artifacts in a topic for a specific feature, feel free to file an issue or submit topic feedback at the bottom of the page
r

rsetkus

12/22/2020, 8:10 AM
Thanks @duuusha. Submitted. Particularly, I am looking for HttpTimeout client feature. Can you tell me please, where can I find gradle dependency?
l

louiscad

12/22/2020, 8:13 AM
@rsetkus It should be in the http client dependency out of the box.
d

duuusha

12/22/2020, 8:16 AM
yes, AFAIS,
io.ktor:ktor-client-core
and
io.ktor:ktor-client-core-jvm
is enough. I’ll add this information to https://ktor.io/docs/timeout.html
r

rsetkus

12/22/2020, 8:22 AM
Gee. 🤦🏻‍♂️ It is pebcak issue. I swear Intellij couldn't find a class to import (no import option). Now it does. Thanks both of you for reply. @duuusha that would be great. Since IntelliJ failed to suggest an import option, I was looking for gradle dependency on internet. If there was statement that it comes by default, that would have had saved some time to me.
l

louiscad

12/22/2020, 8:42 AM
On the other hand, timeout can be expected to be a basic feature that is consequently provided by default.