Role::REST::Client::Response3pm
Response class for rest
Usage
my $res = Role::REST::Client::Response->new(code => '200',response => HTTP::Response->new(...),error => 0,data_callback => sub { sub { ... } },);
Version
version 0.23
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.
Copyright and license
This software is copyright (c) 2018 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.
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.