« EventHttpRequest::getCommand
EventHttpRequest::getHost »

EventHttpRequest::getConnection

(PECL event >= 1.8.0)

EventHttpRequest::getConnection — Returns EventHttpConnection object

説明

Returns EventHttpConnection object which represents HTTP connection associated with the request.

警告

Libevent API allows HTTP request objects to be not bound to any HTTP connection. Therefore we can't unambiguously associate EventHttpRequest with EventHttpConnection. Thus, we construct EventHttpConnection object on-the-fly. Having no information about the event base, DNS base and connection-close callback, we just leave these fields unset.

EventHttpRequest::getConnection() method is usually useful when we need to set up a callback on connection close. See EventHttpConnection::setCloseCallback().

パラメータ

この関数にはパラメータはありません。

戻り値

Returns EventHttpConnection object.

参考

関連キーワード:
EventHttpConnection   EventHttpRequest   connection   getConnection   callback   event   request   setCloseCallback   getCommand   getHost   closeConnection   Libevent   bound   associate   construct   fields   unset   method   getBufferEvent   EventBufferEvent
関連する関数・ページ:
eventhttpconnection.makerequest   eventhttpconnection.getbase   eventhttpconnection.construct   eventhttprequest.closeconnection   eventhttpconnection.settimeout   class.eventhttpconnection

他のマニュアルの関連ページ