From 69b58eba5bc8a01e27c74d6d2346738fdf9f8eb5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 20 Jul 2012 03:40:00 -0500 Subject: rename ->body to ->content on ::Response --- lib/Web/Response.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/Web/Response.pm b/lib/Web/Response.pm index 513c981..5ee5387 100644 --- a/lib/Web/Response.pm +++ b/lib/Web/Response.pm @@ -45,7 +45,7 @@ has headers => ( }, ); -has body => ( +has content => ( is => 'rw', isa => 'Web::Request::Types::PSGIBody', lazy => 1, @@ -88,7 +88,7 @@ sub finalize { } $self->header($k); } $self->headers->header_field_names ], - $self->body + $self->content ]; } @@ -173,7 +173,7 @@ The headers to return with the response. Can be provided as an arrayref, a hashref, or an L object. Defaults to an L object with no contents. -=item body +=item content The content of the request. Can be provided as a string, an object which overloads C<"">, an arrayref containing a list of either of those, a @@ -221,9 +221,9 @@ Shortcut for C<< $ret->headers->content_encoding($encoding) >>. Shortcut for C<< $ret->headers->header('Location', $location) >>. -=method body($body) +=method content($content) -Sets (and returns) the C attribute, as described above. +Sets (and returns) the C attribute, as described above. =method cookies($cookies) -- cgit v1.2.3-54-g00ecf