kotlinforandroid
01/25/2024, 2:37 PMFlow<String>
. Can I somehow "watch" the flow and update my ktor configuration on the fly if the value changes?
fun createHttpClient(headerValue: Flow<String>): MyHttpClient {
install(DefaultRequest) {
header("X-my-header", "${headerValue.value}")
}
}
Aleksei Tirman [JB]
01/25/2024, 3:04 PMkotlinforandroid
01/25/2024, 3:47 PMAleksei Tirman [JB]
01/25/2024, 5:39 PM