             "parameter 2": "😉"
         ]
         
-        API.postFormURLEncoded(parameters) { [weak self] response in
-            self?.handle(response) { form in
+        API.postFormURLEncoded(parameters) { [weak self] result in
+            self?.handle(result) { 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)")

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

            ])
        
        do {
            try API.postJSON(headers) { [weak self] result in
                self?.handle(result) { json in
                    print("You send the following JSON to httpbin.org: \(json.string)")
                }
            }
