swift - Alamofire: Define order of parameters -
i define 2 parameter need attach url data alamofire in swift 3:
let parameters: parameters = ["id": string(mid), "getfunction": "w"] alamofire.request("https://myurl.tld", parameters: parameters).response { response in print("request: \(response.request)") print("response: \(response.response)") print("error: \(response.data)")
in understanding url should resolved this:
but alamaofire changes url this:
which not work me. think alamofire uses parameters in alphabetical order. there way use parameters in order have defined them? problem need use few more parameters in final call , parameters have in correct order.
Comments
Post a Comment