<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'eventhttprequest.sendreplystart.php',
    1 => 'EventHttpRequest::sendReplyStart',
    2 => 'Initiate a chunked reply',
  ),
  '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' => 'en',
    '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">Initiate a chunked reply</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">
   Initiate a reply that uses
   <code class="literal">Transfer-Encoding</code>
   <code class="literal">chunked</code>.
  </p>
  <p class="para">
   This allows the caller to stream the reply back to the client and is useful
   when either not all of the reply data is immediately available or when
   sending very large replies.
  </p>
  <p class="para">
   The caller needs to supply data chunks with
   <span class="methodname"><a href="eventhttprequest.sendreplychunk.php" class="methodname">EventHttpRequest::sendReplyChunk()</a></span>
   and complete the reply by calling
   <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">
      The HTTP response code to send.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">reason</code>
    </dt>
    <dd>
     <p class="para">
      A brief message to send with the response code.
     </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> - Send another data chunk as part of an ongoing chunked reply</span>
   </li>
   <li>
    <span class="methodname"><a href="eventhttprequest.sendreplyend.php" class="methodname" rel="rdfs-seeAlso">EventHttpRequest::sendReplyEnd()</a> - Complete a chunked reply, freeing the request as appropriate</span>
   </li>
  </ul>
 </div>

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