     
     // MARK: - IBActions
     @IBAction func findIPAddress() {
-        API.getIP { [weak self] response in
-            self?.handle(response) { ip in
+        API.getIP { [weak self] result in
+            self?.handle(result) { ip in
                 print("Your IP address is : \(ip.address)")
             }
         }
     }
     
     @IBAction func bounceHeaders() {
-        API.getHeaders { [weak self] response in
-            self?.handle(response) { headers in
+        API.getHeaders { [weak self] result in
+            self?.handle(result) { headers in
                 print("Response headers from httpbin.org:")
                 headers.forEach { key, value in
                     print("\t\(key): \(value)")

            "parameter 2": "😉"
        ]
        
        API.postFormURLEncoded(parameters) { [weak self] response in
            self?.handle(response) { form in
                print("You send the following parameters to httpbin.org using Form URL encoding:")
                form.parameters.forEach { key, value in
                    print("\t\(key): \(value)")

    }
    
    @IBAction func getData() {
        API.getData(bytes: 957) { [weak self] result in
            self?.handle(result) { data in
                print("httpbin.org returned \(data.count) bytes of data")
            }
        }
