I am working on SDK project which requires Interceptor. Which means When ever the developer calls AFNetwroking , before it calls to server I want to change the url and params based on condition. I have done successfully in Android using Okhttp.
Without changing too many codes I want to handle in the SDK. Please help me for my problem.
This is the swift version for okhttp interceptor. Use below link: