Skip to content

Instantly share code, notes, and snippets.

@MaatheusGois
Last active May 21, 2019 17:18
Show Gist options
  • Save MaatheusGois/fb0436f48dcf155924646edcd178422e to your computer and use it in GitHub Desktop.
Save MaatheusGois/fb0436f48dcf155924646edcd178422e to your computer and use it in GitHub Desktop.
func postRequest(url: String, params: [String: String],
completion: @escaping ([String: Any]?, Error?) -> Void){
// URL válida
guard let URL = URL(string: url) else {
completion(nil, nil)
return
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment