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

galex

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