downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

EventHttp::setCallback> <EventHttp::removeServerAlias
[edit] Last updated: Fri, 14 Jun 2013

view this page in

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

Description

public void EventHttp::setAllowedMethods ( int $methods )

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.

Parameters

methods

A bit mask of EventHttpRequest::CMD_* constants .

Return Values

No value is returned.



add a note add a note User Contributed Notes EventHttp::setAllowedMethods - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites