[Catalyst] Patch Engine _properly_ to support IO handles
Matt S Trout
dbix-class at trout.me.uk
Thu Oct 20 08:37:45 CEST 2005
On Thu, Oct 20, 2005 at 04:01:00PM +1000, Andrew Bramble wrote:
> Thanks to sri for pointing out the flaws my previous suggestions. I think this
> is better. When finalise_body is called response->body is checked to see if
> it's a reference and has a 'read' method . Would it be better to check the
> object's package?
Personally, I rather like using duck typing here; means weirder things that
also behaves like IO handles will still work :)
--
Matt S Trout Specialists in perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list