Alamofire POST request with headers
问题 I am trying to make a post request with headers using Alamofire in Swift. However, I keep getting the extra parameter in method call error. I'm using version 4.5 of Alamofire. I'm unable to figure out the error. Please find the code attached let headers = ["Authorization": token, "Content-Type": "application/json"] Alamofire.request("http://localhost:8000/create", method: .post, parameters: parameters, encoding: JSONEncoding.default, headers: headers).responseJSON { response in } 回答1: Add