boolean HTTP_Client::attach (
object HTTP_Request_Listener &$listener
, boolean $propagate
= false
)
The attached Listeners are notified of the following events:
'request'
'httpSuccess'
'httpRedirect'
'httpError'
If $propagate
is TRUE the Listener will be attached to the created HTTP_Request objects and will be notified of their events as well.
&$listener
Listener instance to attach
$propagate
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.