array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), '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); ?>

EventHttp::setAllowedMethods

(PECL event >= 1.4.0-beta)

EventHttp::setAllowedMethodsSets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks

Açıklama

public EventHttp::setAllowedMethods( int $methods ): void

Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks

If not supported they will generate a "405 Method not allowed" response.

By default this includes the following methods: GET, POST, HEAD, PUT, DELETE. See EventHttpRequest::CMD_* constants.

Bağımsız Değişkenler

methods

A bit mask of EventHttpRequest::CMD_* constants.

Dönen Değerler

Hiçbir değer dönmez.