     private var running = false
     /// Reports if the task is finished or not.
     private var done = false
+    /// Reports if the task is cancelled
+    private var _cancelled = false
     
     /**
     creates a new HTTP request.

    
    /// Returns if the task is finished.
    override public var finished: Bool {
        return done
    }
    
    /**

    */
    override public func cancel() {
        task.cancel()
        _cancelled = true
        finish()
    }
    /**
