Skip to content

Commit

Permalink
tweaked custom response recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 2, 2012
1 parent c4627f5 commit 8dc2915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -783,8 +783,8 @@ L<Mojolicious::Controller/"render_static">.
=head2 Custom responses

For entirely custom responses to, for example, stream content directly from
static files, you can use L<Mojolicious::Controller/"rendered"> to tell the
renderer that a response has been generated.
files, you can use L<Mojolicious::Controller/"rendered"> to tell the renderer
that a response has been generated.

$self->res->headers->content_type('text/plain');
$self->res->content->asset(Mojo::Asset::File->new(path => '/etc/passwd'));
Expand Down

0 comments on commit 8dc2915

Please sign in to comment.