Re: Re: HTTP_Request2
| From: | David Jean Louis | Date: | Tue, 28 Oct 2008 22:19:15 +0000 |
| Subject: | Re: Re: HTTP_Request2 | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50962@lists.php.net to get a copy of this message | ||
Daniel O'Connor a écrit :
yes but... what theses responses will contain ? static text ? Are you going to implement a mock HTTP server to build relevant responses ? But you have a point, client/sever applications are hard to unit-test, this is the cruel real world, there are many, differents, erratic http servers in the interweb... -- DavidDon't forget that if there was a mock http adapter which can provide canned/simulated responses, loads of packages in PEAR just got a lot more easy to unit test.Again, why do we need "adapters" ? sorry but I just don't get it. It makes sense for a db package but here... Sockets are fine, shipped by default and available on any platform you can imagine.Handling all the processing in php is slow and uses more memory Sockets don't do ssl Curl and the HTTP extension give use extra features like having multiple inflight http requests