Context
Starting with Kotlin SDK 200.2 there is ability to add http network (application level) interceptor.
Issue
There is no way to modify a request from the chain – there is no builder for it and `Request.Builder()` will cause exception (as it doesn't have okhttp delegate inside).
Sample code
ArcGISEnvironment.configureArcGISHttpClient {
interceptor {
val originalRequest = it.request()
// val newRequest = originalRequest.newBuilder() <-- no API for this op
// it.proceed(newRequest) // so we can't e.g. add/remove header
it.proceed(originalRequest)
}
}