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

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

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