Your IP : 18.217.164.202


Current Path : /home/bitrix/ext_www/dev.shuft.com.ua/bitrix/modules/main/lib/
Upload File :
Current File : /home/bitrix/ext_www/dev.shuft.com.ua/bitrix/modules/main/lib/response.php

<?php
namespace Bitrix\Main;

abstract class Response
{
	/**
	 * @var Context
	 */
	protected $context;

	const SPREAD_SITES = 2;
	const SPREAD_DOMAIN = 4;

	public function __construct(Context $context)
	{
		$this->context = $context;
	}

	public function clear()
	{

	}

	public function redirect($url)
	{

	}

	public function flush($text = '')
	{
		$this->writeHeaders();
		$this->writeBody($text);
	}

	protected abstract function writeHeaders();

	protected function writeBody($text)
	{
		echo $text;
	}

}