EventHttpConnection::__construct

(PECL event >= 1.2.6-beta) Constructs EventHttpConnection object public EventHttpConnection::__construct ( EventBase $base , EventDnsBase $dns_base , string $address , int $port [, EventSslContext $ctx = NULL ] ) Constructs EventHttpConnection object. Parameters: base Associated event base. dns_base If dns_base is NULL, hostname re

EventHttp::setTimeout

(PECL event >= 1.4.0-beta) Sets the timeout for an HTTP request public void EventHttp::setTimeout ( int $value ) Sets the timeout for an HTTP request. Parameters: value The timeout in seconds. Returns: No value is returned.

EventHttp::setMaxHeadersSize

(PECL event >= 1.4.0-beta) Sets maximum HTTP header size public void EventHttp::setMaxHeadersSize ( int $value ) Sets maximum HTTP header size. Parameters: value The header size in bytes. Returns: No value is returned.

EventHttp::setMaxBodySize

(PECL event >= 1.4.0-beta) Sets maximum request body size public void EventHttp::setMaxBodySize ( int $value ) Sets maximum request body size. Parameters: value The body size in bytes. Returns: No value is returned. See also: EventHttp::setMaxHeadersSize()

EventHttp::setDefaultCallback

(PECL event >= 1.4.0-beta) Sets default callback to handle requests that are not caught by specific callbacks public void EventHttp::setDefaultCallback ( string $cb [, string $arg ] ) Sets default callback to handle requests that are not caught by specific callbacks Parameters: cb The callback callable . It should match the following prototype: void callback ([ E

EventHttp::setCallback

(PECL event >= 1.4.0-beta) Sets a callback for specified URI public void EventHttp::setCallback ( string $path , string $cb [, string $arg ] ) Sets a callback for specified URI. Parameters: path The path for which to invoke the callback. cb The callback callable that gets invoked on requested path . It should match the following p

EventHttp::setAllowedMethods

(PECL event >= 1.4.0-beta) Sets the what HTTP methods are supported in requests accepted by this server, and passed to user callbacks 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:

EventHttp::removeServerAlias

(PECL event >= 1.4.0-beta) Removes server alias public bool EventHttp::removeServerAlias ( string $alias ) Removes server alias added with EventHttp::addServerAlias() Parameters: alias The alias to remove. Returns: Returns TRUE on success. Otherwise FALSE. See also:

EventHttp::__construct

(PECL event >= 1.2.6-beta) Constructs EventHttp object(the HTTP server) public EventHttp::__construct ( EventBase $base [, EventSslContext $ctx = NULL ] ) Constructs the HTTP server object. Parameters: base Associated event base. ctx EventSslContext class object. Turns plain HTTP server into HTTPS server. It means that if ctx is co

EventHttp::bind

(PECL event >= 1.2.6-beta) Binds an HTTP server on the specified address and port public void EventHttp::bind ( string $address , int $port ) Binds an HTTP server on the specified address and port. Can be called multiple times to bind the same HTTP server to multiple different ports. Parameters: address A string containing the IP address to listen(2) on.