Net::RDAP::Link(3)
π Net::RDAP::Link π
okay bestie, so this is Net::RDAP::Link β part of the Net::RDAP distribution, and yes it's the Perl doc page for it, welcome to the group chat β¨
β¨ NAME β¨
Net::RDAP::Link β a module representing an RDAP link. that's it, that's the whole job, and it does it beautifully π
πΈ DESCRIPTION πΈ
Links are literally everywhere in RDAP. like, everywhere. The following objects can contain zero or more links:
- objects (peep
Net::RDAP::Object) - remarks (peep
Net::RDAP::Remark) - notices (peep
Net::RDAP::Notice) - events (peep
Net::RDAP::Event)
And in all of those cases, the modules representing those object types inherit from Net::RDAP::Base, which means they all hand you a links() method that returns a (maybe empty, no big deal) array of Net::RDAP::Link objects. consistency? we love her π
π METHODS π
π Value
$value = $link->value;
Gives you back a string holding the value of the value property of the link object β if there is one. no value? no string. simple as that π¦
π Context URI
$uri = $link->context;
Returns a URI object for the context URI of the link, exactly as described in Section 3.2 of RFC 8288 <https://datatracker.ietf.org/doc/html/rfc8288#autoid-13>. π
This URI object gets constructed from the value of the value property (the one we just talked about, keep up bestie π). And here's the cute part: if that property's value is a relative URL, then an absolute URL gets computed for you, using the URI of the RDAP response that contains the link object. math-ing it out for you, iconic behaviour fr fr β¨
π Relationship
$rel = $link->rel;
Returns the relationship attribute. The possible values are defined by an IANA registry, so go check the source of truth:
π URL
$url = $link->href;
Returns a URI object corresponding to the target of the link. where's it pointing? now you know π₯
π Language
@languages = $link->hreflang;
Returns a (potentially empty!) array containing the ISO-639-2 codes describing the language(s) the target is available in. multilingual queen π
π Title
$title = $link->title;
Returns the title attribute of the link. What's it for? It labels the destination of a link so it can be used as a human-readable identifier β in the language of the context where the link shows up. so thoughtful π₯Ί
π Media
$media = $link->media;
Returns the media attribute of the link. This one corresponds to the media/device that the target resource is optimized for. phone? printer? screen? she knows π
π Media Type
$type = $link->type;
Returns a MIME::Type object corresponding to the media type of the target resource.
$is = $link->is_rdap;
And this one returns true if the media type of the target resource suggests that it's an RDAP resource. vibe check passed β
π COPYRIGHT π
Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. For licensing information, please see the LICENSE file in the Net::RDAP distribution. (yes bestie, read the license, it's giving responsible π)
okay that's the whole page, mwah π«Ά this was Net::RDAP::Link, documented in the User Contributed Perl Documentation section of the manual, and this version is from perl v5.42.2, dated 2026-06-17. go forth and parse those links, you absolute main character πβ¨
π¦ 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