Role::REST::Client::Response
version 0.15
my $res = Role::REST::Client::Response->new( code => '200', response => HTTP::Response->new(...), error => 0, data_callback => sub { sub { ... } }, );
Role::REST::Client::Response - Response class for REST
HTTP status code of the request
HTTP::Response object. Use this if you need more information than status and content.
The returned reason from HTTP::Tiny where the status is 500 or higher. More detail may be provided by calling $res->response->content.
$res->response->content
True if the request didn't succeed.
The deserialized data. Returns an empty hashref if the response was unsuccessful.
Kaare Rasmussen, <kaare at cpan dot com>
Please report any bugs or feature requests to bug-role-rest-client at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Role-REST-Client.
Copyright 2012 Kaare Rasmussen, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
Kaare Rasmussen <kaare at cpan dot net>
This software is copyright (c) 2013 by Kaare Rasmussen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Role::REST::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Role::REST::Client
CPAN shell
perl -MCPAN -e shell install Role::REST::Client
For more information on module installation, please visit the detailed CPAN module installation guide.