• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/response.php
  • Класс: CDavResponse
  • Вызов: CDavResponse::MultipartByteRangeHeader
public function MultipartByteRangeHeader($mimetype = false, $from = false, $to = false, $total = false)
{
	if ($mimetype === false)
	{
		if ($this->multipartSeparator == '')
		{
			$this->multipartSeparator = "bx_dav_".md5(microtime());
			$this->AddHeader("Content-type: multipart/byteranges; boundary=".$this->multipartSeparator);
		}
		else
		{
			$this->AddLine("n--{".$this->multipartSeparator."}--");
		}
	}
	else
	{
		$this->AddLine("n--{".$this->multipartSeparator."}n");
		$this->AddLine("Content-type: ".$mimetype."n");
		$this->AddLine("Content-range: ".$from."-".$to."/".($total === false ? "*" : $total));
		$this->AddLine("nn");
	}
}