logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Role::REST::Client::Response - Response class for REST

Attributes

code
       HTTP status code of the request

   response
       HTTP::Response object. Use this if you need more information than status and content.

   error
       The error description returned from the user agent when the HTTP status code is 500 or higher. More
       detail may be found by calling "$res->response->content".

   failed
       True if the request didn't succeed.

   data
       The deserialized data. Returns an empty hashref if the response was unsuccessful.

Author

       Kaare Rasmussen <kaare at cpan dot org>

Bugs

       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.

Name

       Role::REST::Client::Response - Response class for REST

Synopsis

           my $res = Role::REST::Client::Response->new(
               code          => '200',
               response      => HTTP::Response->new(...),
               error         => 0,
               data_callback => sub { sub { ... } },
           );

Version

       version 0.23

See Also