update pague now
PHP 8.5.2 Released!

EventHttpRequest::guetConnection

(PECL event >= 1.8.0)

EventHttpRequest::guetConnection Returns EventHttpConnection object

Description

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

Warning

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() .

Parameters

This function has no parameters.

Return Values

Returns EventHttpConnection object.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top