Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1686

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>Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttp.removeserveralias.html">EventHttp::removeServerAlias</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttp.setcallback.html">EventHttp::setCallback</a></div>
 <div class="up"><a href="class.eventhttp.html">EventHttp</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventhttp.setallowedmethods" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttp::setAllowedMethods</h1>
  <p class="verinfo">(PECL event &gt;= 1.4.0-beta)</p><p class="refpurpose"><span class="refname">EventHttp::setAllowedMethods</span> &mdash; <span class="dc-title">Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttp.setallowedmethods-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>EventHttp::setAllowedMethods</strong></span>
    ( <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$methods</code>
   </span>
   )</div>

  <p class="para rdfs-comment">
   Sets the what HTTP methods are supported in requests accepted by this
   server, and passed to user callbacks
  </p>
  <p class="para">
   If not supported they will generate a
   <em>&quot;405 Method not
  allowed&quot;</em>
   response.
  </p>
  <p class="para">
   By default this includes the following methods:
   <em>GET</em>
   ,
   <em>POST</em>
   ,
   <em>HEAD</em>
   ,
   <em>PUT</em>
   ,
   <em>DELETE</em>
   . See
   <em>EventHttpRequest::CMD_*</em>
   constants.
  </p>
 </div>

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

   <dt>

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

     <p class="para">
      A bit mask of
      <a href="class.eventhttprequest.html#eventhttprequest.constants" class="link">
       <em>EventHttpRequest::CMD_*</em>
     constants</a>
      .
     </p>
    </dd>

   </dt>

  </dl>

 </div>

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

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttp.removeserveralias.html">EventHttp::removeServerAlias</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttp.setcallback.html">EventHttp::setCallback</a></div>
 <div class="up"><a href="class.eventhttp.html">EventHttp</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>