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

Aaron Rice

03/14/2022, 9:33 PM
I'm having trouble importing
ContentNegotiation
. In my
dependencies
, I have:
Copy code
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
where
ktor_version=2.0.0-beta-1
. Is there something else I'm missing?
It looks like this is not implemented in this version yet. Or at least I'm only seeing it in
ktor-client-content-negotiation
. Anyway, I'm rolling back to version
1.6.7
for now.
a

Aleksei Tirman [JB]

03/26/2022, 5:46 PM
Do you mean the
ContentNegotiation
for a client or server?
2 Views