PHP 8.4.1 Released!

EventHttpRequest::getConnection

(PECL event >= 1.8.0)

EventHttpRequest::getConnectionReturns EventHttpConnection object

Descrição

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

Aviso

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Returns EventHttpConnection object.

Veja Também

adicione uma nota

Notas Enviadas por Usuários (em inglês)

Não há notas de usuários para esta página.
To Top