Subject: | Documentation error? |
Date: | Wed, 30 Jun 2010 09:21:04 +0100 |
To: | bug-Catalyst-Runtime [...] rt.cpan.org |
From: | John Imrie <john.imrie [...] adestra.com> |
The documentation in Catalyst::Response claims you can pass any object
to Catalyst::Response->build that implements read() the same way as
IO::Handle. If you look at the code in Catalyst::Engine::finalize_body()
you will see that when $body is blessed and can read, Catalyst calls
Perl's internal read operator and not the method on $body.
Either the documentation in Catalyst::Response is incorrect or the code
in Catalyst::Engine is.
John Imrie