diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-07-20 03:40:00 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-07-20 03:43:27 -0500 |
commit | 69b58eba5bc8a01e27c74d6d2346738fdf9f8eb5 (patch) | |
tree | 6b1b9ed4364259acab91e54194beb8db54ade5ab /lib | |
parent | d5eab12edd13a722b557dcaf4fc5866a12d736d6 (diff) | |
download | web-request-69b58eba5bc8a01e27c74d6d2346738fdf9f8eb5.tar.gz web-request-69b58eba5bc8a01e27c74d6d2346738fdf9f8eb5.zip |
rename ->body to ->content on ::Response
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Web/Response.pm | 10 |
1 files changed, 5 insertions, 5 deletions
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<HTTP::Headers> object. Defaults to an L<HTTP::Headers> 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<body> attribute, as described above. +Sets (and returns) the C<content> attribute, as described above. =method cookies($cookies) |