0

When I invoke an HTTP POST Request using Alamofire it timed out in just one minute of time. Actually, the response is getting in after 2 minutes of request. So how can I change the request time out interval in alamofire? Please help…

The form to send request using alamofire is added below...

Alamofire.request("url", method: .post, parameters: params, encoding: JSONEncoding.default, headers: my custom header
            .validate(contentType: ["application/json"])
            .responseJSON { (response) in 
  switch response.result { 
    case .success(let value):
    //code
    case .failure(let error):
    //code
  }
}
Anjali Shah
  • 720
  • 7
  • 21
Arjun KT
  • 33
  • 1
  • 6

0 Answers0