Skip to content

Commit

Permalink
added streaming response example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 5, 2012
1 parent 3b7c6d2 commit d673f36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.43 2012-01-03 00:00:00
2.43 2012-01-05 00:00:00
- Improved documentation.

2.42 2012-01-02 00:00:00
Expand Down
5 changes: 5 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -882,6 +882,11 @@ C<text/html;charset=UTF-8> by default.
Finalize response and run C<after_dispatch> plugin hook.
# Stream content directly from file
$c->res->content->asset(Mojo::Asset::File->new(path => '/etc/passwd'));
$c->res->headers->content_type('text/plain');
$c->rendered(200);
=head2 C<req>
my $req = $c->req;
Expand Down

0 comments on commit d673f36

Please sign in to comment.