mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 14:28:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329774 c90b9560-bf6c-de11-be94-00142212c4b1
91 lines
2.2 KiB
XML
91 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="eventhttp.setallowedmethods" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>EventHttp::setAllowedMethods</refname>
|
|
<refpurpose>Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier>
|
|
<type>void</type>
|
|
<methodname>EventHttp::setAllowedMethods</methodname>
|
|
<methodparam>
|
|
<type>int</type>
|
|
<parameter>methods</parameter>
|
|
</methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Sets the what HTTP methods are supported in requests accepted by this
|
|
server, and passed to user callbacks
|
|
</para>
|
|
<para>
|
|
If not supported they will generate a
|
|
<literal>"405 Method not
|
|
allowed"</literal>
|
|
response.
|
|
</para>
|
|
<para>
|
|
By default this includes the following methods:
|
|
<literal>GET</literal>
|
|
,
|
|
<literal>POST</literal>
|
|
,
|
|
<literal>HEAD</literal>
|
|
,
|
|
<literal>PUT</literal>
|
|
,
|
|
<literal>DELETE</literal>
|
|
. See
|
|
<literal>EventHttpRequest::CMD_*</literal>
|
|
constants.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>methods</parameter>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
A bit mask of
|
|
<link
|
|
linkend="eventhttprequest.constants">
|
|
<literal>EventHttpRequest::CMD_*</literal>
|
|
constants</link>
|
|
.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.void;
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|