ktor-client-core / io.ktor.client.request / parameter

parameter

fun HttpRequestBuilder.parameter(key: String, value: Any?): Unit

Sets a single URL query parameter of key with a specific value if the value is not null. Can not be used to set form parameters in the body.