EventHttpRequest::getConnection

(PECL event >= 1.8.0) Returns EventHttpConnection object public EventHttpConnection EventHttpRequest::closeConnection ( void ) Returns EventHttpConnection object which represents HTTP connection associated with the request. EventHttpRequest::getConnection() method is usually useful when we need to set up a callback on connection close. See EventHttpConnection::setCloseCallback() . Returns: Re

EventHttpRequest::getCommand

(PECL event >= 1.4.0-beta) Returns the request command(method) public void EventHttpRequest::getCommand ( void ) Returns the request command, one of EventHttpRequest::CMD_* constants. Returns: Returns the request command, one of EventHttpRequest::CMD_* constants.

EventHttpRequest::getBufferEvent

(PECL event >= 1.8.0) Returns EventBufferEvent object public EventBufferEvent EventHttpRequest::closeConnection ( void ) Returns EventBufferEvent object which represents buffer event that the connection is using. Returns: Returns EventBufferEvent object. The reference counter of the returned object will be incremented by one to protect internal structures a

EventHttpRequest::free

(PECL event >= 1.4.0-beta) Frees the object and removes associated events public void EventHttpRequest::free ( void ) Frees the object and removes associated events. Returns: No value is returned.

EventHttpRequest::findHeader

(PECL event >= 1.4.0-beta) Finds the value belonging a header public void EventHttpRequest::findHeader ( string $key , string $type ) Finds the value belonging a header. Parameters: key The header name. type One of EventHttpRequest::*_HEADER constants . Returns: Returns NULL if header not found.

EventHttpRequest::__construct

(PECL event >= 1.4.0-beta) Constructs EventHttpRequest object public EventHttpRequest::__construct ( callable $callback [, mixed $data = NULL ] ) Constructs EventHttpRequest object. Parameters: callback Gets invoked on requesting path. Should match the following prototype: void callback ([ EventHttpRequest $req = NULL [, mixed $arg = NULL ]] )

EventHttpRequest::closeConnection

(PECL event >= 1.8.0) Closes associated HTTP connection public void EventHttpRequest::closeConnection ( void ) Closes HTTP connection associated with the request. Returns: No value is returned.

EventHttpRequest::clearHeaders

(PECL event >= 1.4.0-beta) Removes all output headers from the header list of the request public void EventHttpRequest::clearHeaders ( void ) Removes all output headers from the header list of the request. Returns: No value is returned. See also: EventHttpRequest::addHeader() -

EventHttpRequest::cancel

(PECL event >= 1.4.0-beta) Cancels a pending HTTP request public void EventHttpRequest::cancel ( void ) Cancels a pending HTTP request. Cancels an ongoing HTTP request. The callback associated with this request is not executed and the request object is freed. If the request is currently being processed, e.g. it is ongoing, the corresponding EventHttpConnection object is going to get reset. A request cannot be cancele

EventHttpRequest::addHeader

(PECL event >= 1.4.0-beta) Adds an HTTP header to the headers of the request public bool EventHttpRequest::addHeader ( string $key , string $value , int $type ) Adds an HTTP header to the headers of the request. Parameters: key Header name. value Header value. type One of EventHttpRequest::*_HEAD