public function sendContent()
    {
        if (null === $this->callback) {
            throw new \LogicException('The SteamedResponse callback must not be null.');
        }

        if (!$this->streamed && $this->callback !== null) {
            call_user_func($this->callback);
            $this->streamed = true;
        }
    }