X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=6b4c7c570e8ca794a0b1d3f7812262cc1c33c891;hb=5f7b140f1d46686bfca1480675f47d34ac236dc8;hp=e99cd85cc880b76e1a668c7c56d7b635ec46e5a4;hpb=71453cafc78d14a1c061470011be29c8c4432a18;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index e99cd85..6b4c7c5 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -34,15 +34,19 @@ Catalyst::Response - stores output responding to the current client request =head1 DESCRIPTION This is the Catalyst Response class, which provides methods for responding to -the current client request. +the current client request. The appropriate L for your environment +will turn the Catalyst::Response into a HTTP Response and return it to the client. =head1 METHODS -=head2 $res->body($text) +=head2 $res->body(<$text|$fh|$iohandle_object) $c->response->body('Catalyst rocks!'); -Sets or returns the output (text or binary data). +Sets or returns the output (text or binary data). If you are returning a large body, +you might want to use a L type of object (Something that implements the read method +in the same fashion), or a filehandle GLOB. Catalyst +will write it piece by piece into the response. =head2 $res->content_encoding