<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.eventhttprequest.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'eventhttprequest.sendreplystart.php',
    1 => 'EventHttpRequest::sendReplyStart',
    2 => 'Инициирует фрагментарный ответ',
  ),
  'up' => 
  array (
    0 => 'class.eventhttprequest.php',
    1 => 'EventHttpRequest',
  ),
  'prev' => 
  array (
    0 => 'eventhttprequest.sendreplyend.php',
    1 => 'EventHttpRequest::sendReplyEnd',
  ),
  'next' => 
  array (
    0 => 'class.eventlistener.php',
    1 => 'EventListener',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/event/eventhttprequest/sendreplystart.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="eventhttprequest.sendreplystart" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttpRequest::sendReplyStart</h1>
  <p class="verinfo">(PECL event &gt;= 1.4.0-beta)</p><p class="refpurpose"><span class="refname">EventHttpRequest::sendReplyStart</span> &mdash; <span class="dc-title">Инициирует фрагментарный ответ</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttprequest.sendreplystart-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventHttpRequest::sendReplyStart</strong></span>(<span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$code</code>
   </span>, <span class="methodparam">
    
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$reason</code>
   </span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Метод инициирует ответ со значением <code class="literal">chunked</code>
   в заголовке <code class="literal">Transfer-Encoding</code>.
  </p>
  <p class="para">
   Это разрешает вызывающей стороне передавать ответ обратно клиенту. Это будет полезно,
   когда либо не все данные ответа доступны сразу, либо при отправке очень больших ответов.
  </p>
  <p class="para">
   Вызывающая сторона должна предоставить фрагменты данных
   методом <span class="methodname"><a href="eventhttprequest.sendreplychunk.php" class="methodname">EventHttpRequest::sendReplyChunk()</a></span>
   и завершить ответ, вызвав метод <span class="methodname"><a href="eventhttprequest.sendreplyend.php" class="methodname">EventHttpRequest::sendReplyEnd()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttprequest.sendreplystart-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   
    <dt>
     <code class="parameter">code</code>
    </dt>
    <dd>
     <p class="para">
      Код HTTP-ответа для отправки.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">reason</code>
    </dt>
    <dd>
     <p class="para">
      Краткое сообщение для отправки с кодом ответа.
     </p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttprequest.sendreplystart-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Функция не возвращает значения после выполнения.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventhttprequest.sendreplystart-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li>
    <span class="methodname"><a href="eventhttprequest.sendreplychunk.php" class="methodname" rel="rdfs-seeAlso">EventHttpRequest::sendReplyChunk()</a> - Отправляет блок данных, как часть текущего фрагментированного ответа</span>
   </li>
   <li>
    <span class="methodname"><a href="eventhttprequest.sendreplyend.php" class="methodname" rel="rdfs-seeAlso">EventHttpRequest::sendReplyEnd()</a> - Заполняет фрагментарный ответ, освобождая запрос соответствующим образом</span>
   </li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>