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

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

            "parameter 2": "😉"
        ]
        
        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)")
