     }
     
     //MARK: NSURLConnectionDataDelegate
-    
-    public func connection(_: NSURLConnection!, error: NSError!) {
+
+    public func connection(connection: NSURLConnection, didFailWithError error: NSError) {
         completionHandler(nil, nil, error)
     }
     
-    public func connection(_: NSURLConnection!, didReceiveResponse response: NSURLResponse!) {
+    public func connection(connection: NSURLConnection, didReceiveResponse response: NSURLResponse) {
         self.response = response
     }
     
-    public func connection(_: NSURLConnection!, didReceiveData data: NSData!) {
+    public func connection(connection: NSURLConnection, didReceiveData data: NSData) {
         responseData.appendData(data)
     }
     
-    public func connectionDidFinishLoading(_: NSURLConnection!) {
+    public func connectionDidFinishLoading(connection: NSURLConnection) {
         completionHandler(response, responseData, nil)
     }
 }

        contentType = "application/x-www-form-urlencoded"
        
        if (method == "GET") {
            url = queryParametersURL()
        } else {
            body = serializedRequestBody()
        }

        return queryString().dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true)
    }
    
    func queryParametersURL() -> NSURL? {
        return NSURL(string: url.absoluteString! + queryString())
    }
    
