Hey I want to understand, what is the use of this ...
# ktor
v
Hey I want to understand, what is the use of this
ContentNegotiation
in ktor in client side? Can someone guide me.
a
To serialize/deserialize HTTP body based on the
Content-Type
header.
v
okk got it
a
m
implementation("io.ktor:ktor-client-content-negotiation:2.0.0")
and you install it like so:
import io.ktor.client.plugins.contentnegotiation.*
Copy code
install(ContentNegotiation) {
    json(
        Json { ... }
    )
}