HTTP::...:Header(3pm)

πŸ“¦
version 4.13 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

HTTP::OAI::Header β€” bestie, it wraps up an OAI header structure all neat and cozy so you don't have to rawdog the XML yourself ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

use HTTP::OAI::Header;

my $h = new HTTP::OAI::Header(
        identifier=>'oai:myarchive.org:2233-add',
        datestamp=>'2002-04-12T20:31:00Z',
);

$h->setSpec('all:novels');

🌸 METHODS 🌸

  • $h = new HTTP::OAI::Header β€” the constructor, the moment of creation, the main character entrance πŸŽ€ It hands you back a brand new HTTP::OAI::Header object. That's the whole vibe.
  • $h->identifier([$identifier]) β€” grab the record's OAI identifier, and if you pass $identifier it'll set it too. Get and set, two moods in one call πŸ’…
  • $h->datestamp([$datestamp]) β€” same energy for the record datestamp. Heads up bestie, this one is OAI 2.0+ territory πŸ‘‘
  • $h->status([$status]) β€” get and (optionally) set the record status. The valid values are literally just 'deleted' or undef β€” that's it, that's the whole menu, no cap 😭
  • $h->is_deleted() β€” returns whether this record's status is deleted. Yes/no, deleted/not deleted, slay.
  • @sets = $h->setSpec([$setSpec]) β€” hands you back the list of setSpecs, and if you pass $setSpec it appends that brand new setSpec on there (again, OAI 2.0+ ✨).
  • $dom_fragment = $id->generate() β€” this one acts as a SAX driver 🫢 so use "$h->set_handler()" to tell it which filter the events should get passed along to.
Not me realizing this whole module is just a glow-up for header data. Lowkey iconic, highkey necessary. πŸ’–

okay so that's the entire page, periodt 🌈 This little gem lives in the User Contributed Perl Documentation, it's running on perl v5.36.0, and it was stamped 2023-09-28 β€” go forth and build those OAI headers, bestie, you're gonna ate πŸ¦‹πŸ’…βœ¨

πŸ“¦ where this page comes from