Net::RD...daction(3)

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

✨ NAME ✨

Net::RDAP::Redaction β€” bestie, it's a module that represents a redacted field in an RDAP response πŸ’… (and yes, it's a User Contributed Perl Documentation page, we love a classic)


🌸 DESCRIPTION 🌸

Okay so here's the tea πŸ“ β€” literally any RDAP object that inherits from Net::RDAP::Object comes with a redactions() method. Call it and you get back an array of Net::RDAP::Redaction objects, each one representing a field that the server was like "nope, that one's redacted" about. And if there aren't any? You just get nothing, which is also valid. Periodt.


πŸŽ€ METHODS πŸŽ€

πŸ’– Redacted Field Name

$name = $field->name;

Hands you the logical name for the redacted field πŸ¦‹. And here's the thing β€” it can be registered or unregistered, both are fine, no drama. If you wanna go deep on that, it's all in Section 4.2 of RFC 9537: https://www.rfc-editor.org/rfc/rfc9537.html#name-redacted-member πŸ“š


πŸ’œ Redaction Method

$method = $field->method;

Returns one of these four icons, and only these four, no cap:

  • removal
  • emptyValue
  • partialValue
  • replacementValue

🌈 JSON Path Expression Language

$lang = $field->pathLang;

Tells you which JSON path expression language is in play πŸ‘‘. And by default? It's jsonpath. Slay.


⭐ JSON Paths

$prePath = $field->prePath;

The path expression pointing at the redacted field in the pre-redacted response β€” if there is one, because sometimes there just isn't πŸ™ˆ.

$postPath = $field->postPath;

The path expression pointing at a redacted field in the redacted (aka post-redacted) response β€” again, only if any πŸ’«.

$replacementPath = $field->replacementPath;

The path expression of the replacement field of the redacted field, and this one only shows up when the redaction method is replacementValue. Very specific, very iconic πŸ’…


🧚 Reason

$reason = $field->reason;
$lang = $field->reasonLang;

$field->reason gives you the human-readable reason(s) why the field got redacted in the first place 😭 β€” like, the why, the lore. And $field->reasonLang tells you what language that reason is written in, which is en by default 🌍


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


And that's the whole page, bestie 🫢 β€” this one's from perl v5.42.2, dated 2026-06-17. Go forth and redact responsibly βœ¨πŸ’–

πŸ“¦ where this page comes from