HTTP::...Record(3pm)
π HTTP::...Record(3pm) π
ok so bestie, welcome to the User Contributed Perl Documentation page for HTTP::...Record(3pm) β yes the title looks like it got cut off mid-sentence, that's just how the header renders it, we move on β¨
β¨ NAME β¨
HTTP::OAI::GetRecord β an OAI GetRecord response π
πΈ DESCRIPTION πΈ
so HTTP::OAI::GetRecord is derived from HTTP::OAI::Response, which means it inherits all the good stuff and then gives you more. specifically, it gives you access to the data chillin' inside an OAI GetRecord response, on top of the header information that OAI::Response already hands you. it's giving β¨layeredβ¨, it's giving inheritance done right π
π¦ SYNOPSIS π¦
ok here's the vibe, literally copy this:
use HTTP::OAI::GetRecord();
$res = new HTTP::OAI::GetRecord();
$res->record($rec);
that's it. that's the whole entry point. iconic π«Ά
π METHODS π
π $gr = new HTTP::OAI::GetRecord
this is the constructor, bestie. it returns a brand new HTTP::OAI::GetRecord object, fresh out the box, zero notes π
π $rec = $gr->next
hands you the next record stored in the response. if there are no more records available it returns undef β so like, no drama, just undef, check for it π
the record comes back as an OAI::Record.
π @recs = $gr->record([$rec])
returns the record list, and if you pass it a record it'll optionally add that record to the end of the queue.
β οΈ heads up though: GetRecord only stores one record at a time, so if you call this method with argument(s) it will replace any existing record. one in, one out, no hoarding π
β¨ $dom = $gr->toDOM()
returns an XML::DOM object representing the GetRecord response. boom, DOM'd, slay π₯
πΈ sign-off πΈ
and that's the whole page, bestie!! this was perl v5.36.0, dated 2023-09-28, and the manual is HTTP::...Record(3pm) β go forth and GetRecord responsibly πβ¨ππ¦
π¦ 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