sunil sunil -4 years ago 191
Swift Question

Add Interceptor for AFNetworking/Alamfire ios

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.

Answer Source

This is the swift version for okhttp interceptor. Use below link:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download