https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

galex

02/05/2019, 8:17 PM
Another one, what’s the right engine configuration for ktor-client-js to be able to parse Json? In Android I could add the following: actual val networkHttpClient: HttpClient get() = HttpClient(OkHttp) { engine { if(BuildConfig.DEBUG) addNetworkInterceptor(HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BODY }) } install(JsonFeature) { serializer = GsonSerializer() } }
d

Dominaezzz

02/05/2019, 8:18 PM
#ktor 🙂
g

galex

02/05/2019, 8:18 PM
ah right thanks
2 Views