Is it possible to add timeout handler for Alamofire request?
In my project I use Alamofire this way:
init() { let configuration = NSURLSessionCon
Swift 3
The accepted answer didn't work for me.
After a lot of research, I did it like this:
let manager = Alamofire.SessionManager.default manager.session.configuration.timeoutIntervalForRequest = 120 manager.request("yourUrl", method: .post, parameters: ["parameterKey": "value"])