X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=cd818579615e578d82d6765afd9625165b1d60ca;hp=68ab474b94794fb1c3f2cefbdfeb258260f45c6d;hb=8738b8fecb20f3761d76a8d7f46660fdae54993a;hpb=47b9d68e304e9cb305974bc15aa8e60f4bfb6c45 diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 68ab474..cd81857 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -48,12 +48,6 @@ sub output { shift->body(@_) } sub code { shift->status(@_) } -=head2 $self->write($buffer) - -Writes the buffer to the client. - -=cut - sub write { my ( $self, $buffer ) = @_; @@ -68,12 +62,6 @@ sub write { return $len; } -=head2 $self->finalize_headers($c) - -Abstract method, allows engines to write headers to response - -=cut - sub finalize_headers { my ($self) = @_; @@ -258,6 +246,10 @@ Writes $data to the output stream. Prints @data to the output stream, separated by $,. This lets you pass the response object to functions that want to write to an L. +=head2 $self->finalize_headers($c) + +Writes headers to response if not already written + =head2 DEMOLISH Ensures that the response is flushed and closed at the end of the