         }
     }
 
-    public init(data:NSData?, response:NSURLResponse?, error:NSError?, request:NSURLRequest?) {
+    public init(data:NSData?, response:NSURLResponse?, error:NSError?, task:NSURLSessionTask?) {
         self.content = data
         self.response = response
         self.error = error
-        self.request = request
+        self.task = task
     }
 
     public var json:AnyObject? {

                        return requestResult
                    }
            } else {
                let erronousResult = HTTPResult(data: nil, response: nil, error: invalidURLError, request: nil)
                if let handler = asyncCompletionHandler {
                    handler(erronousResult)
                } else {

                        originalRequest:request,
                        data:NSMutableData(),
                        progressHandler: asyncProgressHandler
                        ) { result in
                            if let handler = asyncCompletionHandler {
                                handler(result)
                            }
