Re: [PEPr] +1 for Web Services::Services_oEmbed
| From: | Joshua Eichorn | Date: | Mon, 27 Oct 2008 18:23:33 +0000 |
| Subject: | Re: [PEPr] +1 for Web Services::Services_oEmbed | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50937@lists.php.net to get a copy of this message | ||
Joe Stump wrote:
On Oct 27, 2008, at 11:08 AM, till wrote:-joshI wonder if those things could be done using a pluggable "HTTP_Request2_Response" class? Maybe provide an interface with a parseResponse() (or similar) and offer a simple example implementation so people can easily override it on demand.I like this idea. PDO does this with custom result classes and it works rather nicely. --Joe Its a bit harder then that since some backends give you back information pre-parsed instead of providing a function to parse them (curl, the http stream)