Net::RDAP::Base(3)

πŸ“¦
version 0.43 Β· 3 versions
, in fedora 44

✨ Net::RDAP::Base ✨

okay so bestie, welcome to Net::RDAP::Base β€” the base module for many Net::RDAP:: modules πŸ’– (this is from the User Contributed Perl Documentation, if you were wondering where we are rn).


🌸 NAME 🌸

Net::RDAP::Base β€” the base module for many Net::RDAP:: modules.


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: you do not use Net::RDAP::Base directly. Like, ever. Not the vibe. Instead, various other modules extend it. It's giving "backbone of the operation" energy, and honestly? iconic πŸ‘‘


πŸ’… METHODS πŸ’…

πŸŽ€ Language

$lang = $object->lang;

Returns the language identifier for this object, or undef. that's it that's the whole thing, no cap πŸ’œ

@links = $object->links;

Returns a (potentially empty) array of Net::RDAP::Link objects. potentially empty, bestie β€” do not come for me if it's empty, it's allowed to be empty πŸ™ˆ

$link = $object->link($rel);

Returns the first Net::RDAP::Link object whose rel property matches the value in $rel (or undef if no subject object is found). first match only, we're not doing a whole scavenger hunt πŸ”₯

$link = $object->related;

Returns the first Net::RDAP::Link object with a rel property of related and a type property of application/rdap+json (or undef if no subject object is found). very specific, very demure ✨

$self = $object->self;

Returns a Net::RDAP::Link object corresponding to the self link of this object (if one is available). main character energy fr fr β€” it's literally the link to itself πŸ’–

🌈 DOCUMENT URL

$url = $object->document_url;

This method returns a URI object representing the URL of the document that this object appears in. Why do you care? Because it's so helpful when converting relative URLs (which might appear in links) into absolute URLs. lowkey a lifesaver 🫢

🧚 PARENT OBJECT

$parent = $object->parent;

Returns the object in which this object is embedded, or undef if this object is the topmost object in the RDAP response. if you're at the top, there's no parent, you're the moment πŸ’…

⭐ TOPMOST OBJECT

$top = $object->top;

Returns the topmost object in the RDAP response. climb the whole tree, get to the top, slay 🌸

πŸ¦‹ OBJECT CHAIN

@chain = $object->chain;

Returns an array containing the hierarchy of objects that enclose this object. so for example, the registrar entity of a nameserver object of a domain name will have a chain that looks like [Net::RDAP::Object::Entity, Net::RDAP::Object::Nameserver, Net::RDAP::Object::Domain]. and if the object is the topmost object of the RDAP response, the array will only contain that object. just one lil guy in there πŸ₯Ί


πŸ”₯ TO_JSON() πŸ”₯

Net::RDAP::Base provides a TO_JSON() so that any RDAP object can be serialized back into JSON β€” but ONLY if your JSON serializer (JSON, JSON::XS, etc) is configured with the convert_blessed option. read that again bestie, it's conditional, no config no serialization 😭


Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. For licensing information, please see the LICENSE file in the Net::RDAP distribution.


ok that's the whole page, you ate that πŸ“ go forth and RDAP responsibly, bestie πŸ’–

this was perl v5.42.2, dated 2026-06-17 β€” mwah, catch you on the next man page βœ¨πŸŽ€

πŸ“¦ where this page comes from