Search code examples
androidkotlinretrofitretrofit2

Access raw retrofit data from server pre GsonConverter


How does one access the raw "string" of data received from the server before it is processed by the GsonConveterFactory?

This is for an Android project using Kotlin

Thanks


Solution

  • I would consider using an OkHttp interceptor.