constructor HTTP_Client::HTTP_Client() | HTTP_Client::currentResponse() |
HTTP_Client | |
PEAR Manual | |
require_once 'HTTP/Client.php'; |
boolean HTTP_Client::attach (
object HTTP_Request_Listener &$listener
, boolean $propagate = FALSE
)
The attached Listeners are notified of the following events:
sent before a HTTP request that is not a result of previous redirect.
sent upon receiving a successfull 2xx response (or 3xx response, if it is not a redirect or if redirect processing is disabled).
sent when a 3xx redirection response is received, before following a redirect
sent on 4xx, 5xx response
Listener instance to attach
Whether the listener should be attached to the created HTTP_Request objects
returns whether the listener was successfully attached
throws no exceptions thrown
see detach()
This function can not be called statically.
constructor HTTP_Client::HTTP_Client() | HTTP_Client::currentResponse() |
HTTP_Client | |
PEAR Manual | |