MR::IP...sponse(3pm)

πŸ’– MR::IProto::Response πŸ’–

okay so bestie, welcome to MR::IProto::Response β€” it's the response message ✨ part of the MR::IProto family, documented in the User Contributed Perl Documentation and shipped with perl v5.30.3. iykyk. 🫢


✨ NAME ✨

MR::IProto::Response β€” it's literally the response message, no cap πŸ’…


🌸 DESCRIPTION 🌸

This is the base class for all response messages. like, every response message you ever meet is gonna trace its little lineage back here. main character energy, honestly πŸ‘‘


πŸŽ€ PUBLIC ATTRIBUTES πŸŽ€

  • request β€” this is an instance of MR::IProto::Request. that's the whole vibe. πŸ¦‹

πŸ’œ PUBLIC METHODS πŸ’œ

  • retry β€” tells you whether a request retry must be done. that's it, that's the method. ⭐

πŸ”₯ PROTECTED METHODS πŸ”₯

BUILDARGS( %args | \%args | $data )

so if $data gets passed as the argument, then it's unpacked and the object is created based on the information contained in it. ✨

no seriously, go read "BUILDARGS" in Mouse::Manual::Construction for more info, it's giving essential reading πŸ“š

_parse_data( $data )

you must implement this method in your subclass to unpack your object. it returns a hashref of attributes which will be passed to the constructor. so like, if you forget to implement it... that's a you problem bestie 😭 (but fr fr, implement it).


and that's the whole page!! πŸŽ€ tysm for reading, ily, go slay your response messages πŸ’–πŸŒΈ

User Contributed Perl Documentation Β· perl v5.30.3 Β· 2020-07-21 β€” yeah she's an oldie but a goodie, iconic behavior honestly πŸ‘‘βœ¨
πŸ“¦ where this page comes from