[PEPr] Comment on HTTP::HTTP_Request2_Hawk

[email protected] ("Alexey Borzov") Sun, 23 Feb 2014 12:43:08 +0000 (GMT)
Newsgroups php.pear.dev
Message-ID <[email protected]>
Hi Bertrand,

Unfortunately, your Observer will not work with HTTP_Request2's Curl
adapter at all: it does not send 'connect' event you rely upon. Socket
adapter tries to use keep-alive feature of HTTP protocol so it may reuse an
existing connection and not send a 'connect' event either.

That being said, it may make sense to add a new event sent to observers
before any communication to remote server, making it possible for observers
to modify the request.

-- 
http://pear.php.net/pepr/pepr-proposal-show.php?id=701