X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=3c71fde35709ee0a957f072d231782f940804d22;hp=2c63ac733cd223aa5d7f32ba8004380e1c75702a;hb=0fc2d522eec43202c21e9f0062e43f10db4d9008;hpb=8e061fef6ed2e38808032cbb722098c5c183ec03 diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 2c63ac7..3c71fde 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -1,5 +1,6 @@ package Catalyst::Response; +use Class::C3; use Moose; use HTTP::Headers; @@ -18,6 +19,7 @@ has headers => ( has _context => ( is => 'rw', weak_ref => 1, + handles => ['write'], ); sub output { shift->body(@_) } @@ -153,10 +155,6 @@ Sets or returns the HTTP status. Writes $data to the output stream. -=cut - -sub write { shift->_context->write(@_); } - =head2 meta Provided by Moose