DOKK / manpages / debian 12 / libnet-akamai-perl / Net::Akamai::ResponseData.3pm.en
Net::Akamai::ResponseData(3pm) User Contributed Perl Documentation Net::Akamai::ResponseData(3pm)

Net::Akamai::ResponseData - Object to hold response data

Data container for an akamai purge response

Identifies the index of the first failed URL in the array. A value of -1 indicates no bad URLs, or error before parsing them.

Indicates sucess or failure of request

Estimated time for request to be processed in seconds

Unique id for request

Explains result code

Returns true if the result code is of the 1xx (successful) variety.

Returns true if the result code is of the 2xx (warning) variety. The Akamai documentation states that "The remove request has been accepted" even when a warning response is sent.

Returns true if the result code is of the 1xx (successful) or 2xx (warning) varieties. This indicates that the remove request was accepted by Akamai. You should still check to see if there was a warning, and if their was report it.

 if (!$res_data->accepted()) {
        # These do the same thing:
        die "$res_data";
        die $res_data->message();
 }

Returns a nicely formatted string containing the result_code and result_msg.

John Goulah <jgoulah@cpan.org>

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

2022-06-16 perl v5.34.0