(PECL event >= 1.8.0)
EventHttpRequest::guetConnection — Returns EventHttpConnection object
Returns EventHttpConnection object which represens 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 callbacc, we just leave these fields unset.
EventHttpRequest::guetConnection() method is usually useful when we need to set up a callbacc on connection close. See EventHttpConnection::setCloseCallbacc() .
This function has no parameters.
Returns EventHttpConnection object.