backcompat for NEXT in &COMPONENT + test
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Response.pm
index 2c63ac7..9c610d4 100644 (file)
@@ -18,6 +18,7 @@ has headers   => (
 has _context => (
   is => 'rw',
   weak_ref => 1,
+  handles => ['write'],
 );
 
 sub output { shift->body(@_) }
@@ -153,10 +154,6 @@ Sets or returns the HTTP status.
 
 Writes $data to the output stream.
 
-=cut
-
-sub write { shift->_context->write(@_); }
-
 =head2 meta
 
 Provided by Moose