Easy one perhaps: I am using Ktor client side in K...
# ktor
t
Easy one perhaps: I am using Ktor client side in KMM module, and set query params like so everywhere:
Copy code
parameters.apply {
   append("key", value)
   ...
}
but all the append calls have the
This API is internal in ktor and should not be used. It could be removed or changed without notice.
warning. Is there is a more standard way to define params that will not give this warning?
a
The way you add query parameters is standard. This warning will be fixed in Ktor 2.0.0. To disable it you can add
@OptIn(InternalAPI::class)
annotation. For more information please read KTOR-3001.
t
Cool, thank you. I will just wait, since I use it in a few hundred places…