start using Class::C3, may need to add a reinitalize bit later, not sure
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Response.pm
index 2c63ac7..3c71fde 100644 (file)
@@ -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