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

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

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