<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.eventhttp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'eventhttp.setallowedmethods.php',
    1 => 'EventHttp::setAllowedMethods',
    2 => 'Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks',
  ),
  'up' => 
  array (
    0 => 'class.eventhttp.php',
    1 => 'EventHttp',
  ),
  'prev' => 
  array (
    0 => 'eventhttp.removeserveralias.php',
    1 => 'EventHttp::removeServerAlias',
  ),
  'next' => 
  array (
    0 => 'eventhttp.setcallback.php',
    1 => 'EventHttp::setCallback',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/event/eventhttp/setallowedmethods.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventHttp::setAllowedMethods</strong></span>(<span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$methods</code>
   </span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></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
   <code class="literal">&quot;405 Method not
  allowed&quot;</code>
   response.
  </p>
  <p class="para">
   By default this includes the following methods:
   <code class="literal">GET</code>,
   <code class="literal">POST</code>,
   <code class="literal">HEAD</code>,
   <code class="literal">PUT</code>,
   <code class="literal">DELETE</code>.
   See
   <code class="literal">EventHttpRequest::CMD_*</code>
   constants.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttp.setallowedmethods-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt>
     <code class="parameter">methods</code>
    </dt>
    <dd>
     <p class="para">
      A bit mask of
      <a href="class.eventhttprequest.php#eventhttprequest.constants" class="link">
       <code class="literal">EventHttpRequest::CMD_*</code>
     constants</a>.
     </p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttp.setallowedmethods-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   値を返しません。
  </p>
 </div>

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