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.

https://github.com/square/okhttp/wiki/Interceptors

Answer Source

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

https://cocoapods.org/pods/SwiftInterceptor

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