Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1722

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Send an HTML reply to the client</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttprequest.senderror.html">EventHttpRequest::sendError</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttprequest.sendreplychunk.html">EventHttpRequest::sendReplyChunk</a></div>
 <div class="up"><a href="class.eventhttprequest.html">EventHttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventhttprequest.sendreply" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttpRequest::sendReply</h1>
  <p class="verinfo">(PECL event &gt;= 1.4.0-beta)</p><p class="refpurpose"><span class="refname">EventHttpRequest::sendReply</span> &mdash; <span class="dc-title">Send an HTML reply to the client</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttprequest.sendreply-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type"><span class="type void">void</span></span>
    <span class="methodname"><strong>EventHttpRequest::sendReply</strong></span>
    ( <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$code</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$reason</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="class.eventbuffer.html" class="type EventBuffer">EventBuffer</a></span>
     <code class="parameter">$buf</code>
   </span>
  ] )</div>

  <p class="para rdfs-comment">
   Send an HTML reply to the client. The body of the reply consists of data in
   optional
   <em><code class="parameter">buf</code></em>
   parameter.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttprequest.sendreply-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term">
     <em><code class="parameter">code</code></em>
    </span>
    <dd>

     <p class="para">
      The HTTP response code to send.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">reason</code></em>
    </span>
    <dd>

     <p class="para">
      A brief message to send with the response code.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">buf</code></em>
    </span>
    <dd>

     <p class="para">
      The body of the response.
     </p>
    </dd>

   </dt>

  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttprequest.sendreply-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventhttprequest.sendreply-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member">
     <span class="methodname"><a href="eventhttprequest.senderror.html" class="methodname" rel="rdfs-seeAlso">EventHttpRequest::sendError()</a> - Send an HTML error message to the client</span>
   </li>
   <li class="member">
     <span class="methodname"><a href="eventhttprequest.sendreplychunk.html" class="methodname" rel="rdfs-seeAlso">EventHttpRequest::sendReplyChunk()</a> - Send another data chunk as part of an ongoing chunked reply</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttprequest.senderror.html">EventHttpRequest::sendError</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttprequest.sendreplychunk.html">EventHttpRequest::sendReplyChunk</a></div>
 <div class="up"><a href="class.eventhttprequest.html">EventHttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>