Net::A...nseData(3pm)
π Net::Akamai::ResponseData π
okay so bestie, welcome to Net::Akamai::ResponseData β it lives in the User Contributed Perl Documentation corner of the perl-verse, and it's a whole vibe. β¨
πΈ NAME πΈ
Net::Akamai::ResponseData β an object to hold response data. that's it, that's the job, she's a container and she's serving π
π¦ DESCRIPTION π¦
fr fr, this is just a data container for an Akamai purge response. no tricks, no hidden lore β she holds the receipts from your purge request and hands them back to you all neatly packaged. π
π Attributes π
π uri_index
identifies the index of the first failed URL in the array. a value of -1 means there were no bad URLs, or that an error happened before the URLs even got parsed. iykyk. π
π result_code
indicates success or failure of the request. that's the whole personality. β¨
β est_time
estimated time for the request to be processed, measured in seconds. β±οΈ
π§ session_id
a unique id for the request. her little name tag. π·οΈ
π«Ά result_msg
explains the result_code. the translator of the group chat. π¬
π Methods π
π₯ successful
returns true if the result code is of the 1xx (successful) variety. slay. β
πΈ warning
returns true if the result code is of the 2xx (warning) variety. and like, the Akamai documentation states that "The remove request has been accepted" even when a warning response is sent. so yeah, read the room. β οΈ
π accepted
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. but bestie β you should still check to see if there was a warning, and if there was, report it. don't skip that step. π
π¦ message
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. so when things go wrong you get a cute lil explainer instead of a mystery. π
β¨ AUTHOR β¨
John Goulah <jgoulah@cpan.org> π
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π
π«Ά okay that's the whole page bestie, go purge something responsibly!!
perl v5.34.0 Β· 2022-06-16 β mwah, that's the version and date stamp, and Net::A...nseData(3pm) says bye bye, love u, stay iconic π β¨
π¦ where this page comes from
- debian bookworm: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms