[PEPr] Comment on HTTP::HTTP_Request2_Hawk
| From: | Alexey Borzov | Date: | Sun, 23 Feb 2014 12:43:08 +0000 |
| Subject: | [PEPr] Comment on HTTP::HTTP_Request2_Hawk | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-55312@lists.php.net to get a copy of this message | ||
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