ktor-utils / io.ktor.util / filter

filter

fun StringValues.filter(keepEmpty: Boolean = false, predicate: (String, String) -> Boolean): StringValues

Create a new instance of StringValues filtered by the specified predicate

Parameters

keepEmpty - when true will keep empty lists otherwise keys with no values will be discarded