HTTP::...:Header(3pm)
π 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 newHTTP::OAI::Header object. That's the whole vibe.$h->identifier([$identifier])β grab the record's OAI identifier, and if you pass$identifierit'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'orundefβ 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$setSpecit 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
- debian trixie: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu noble: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu resolute: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu stonking: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms