Net::RDAP::Base(3)
β¨ 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
@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" Link
$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 π
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
- fedora 44: perl-Net-RDAP 0.43-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms