Net::A...nseData(3pm)

πŸ“¦
version 0.15 Β· 2 versions
  • 0.15 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.15 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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