Hello, what’s the right engine configuration for k...
# ktor
g
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()
       }
   }