[Catalyst-commits] r14534 - trunk/examples/CatalystAdvent/root/2014

jnapiorkowski at dev.catalyst.perl.org jnapiorkowski at dev.catalyst.perl.org
Mon Dec 1 18:56:02 GMT 2014


Author: jnapiorkowski
Date: 2014-12-01 18:56:01 +0000 (Mon, 01 Dec 2014)
New Revision: 14534

Modified:
   trunk/examples/CatalystAdvent/root/2014/5.pod
Log:
5

Modified: trunk/examples/CatalystAdvent/root/2014/5.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2014/5.pod	2014-12-01 18:55:54 UTC (rev 14533)
+++ trunk/examples/CatalystAdvent/root/2014/5.pod	2014-12-01 18:56:01 UTC (rev 14534)
@@ -2,8 +2,28 @@
 
 =head1 Overview
 
+We changed L<Catalyst> so that if you return a filehandle for the body
+response we now pass the filehandle down to the underlying Plack server.
+This enables one to take better advantage of the server's specific powers
+and to tkae advantage of middleware in the related middleware ecosystem.
+
 =head1 Introduction
 
+L<Catalyst> has allowed one to return a filehandle as the response of the
+application for quite some time.  For example:
+
+    package MyApp::Controller::File;
+
+    use base 'Catalyst::Controller';
+
+    sub file :Path('') {
+      my ($self, $c) = @_;
+      open(my $fh, '<', $path_to_file) || die ...;
+
+      $c->response->body($fh);
+    }
+
+However in the past 
 =head1 Discussion
 
 =head1 More Information




More information about the Catalyst-commits mailing list