HTTP::...nToken(3pm)
β¨ NAME β¨
HTTP::OAI::ResumptionToken β it encapsulates an OAI resumption token. That's the whole vibe, bestie π
okay so real talk: this little page lives in the User Contributed Perl Documentation, and it's here to explain one tiny-but-iconic object that wraps up an OAI resumption token for you. That's it. That's the job. And it does it gorgeously π
π¦ METHODS π¦
$rt = new HTTP::OAI::ResumptionTokenβ this constructor method hands you back a brand-newHTTP::OAI::ResumptionTokenobject. fresh out the box, no cap β¨$token = $rt->resumptionToken([$token])β gives you the resumption token string, and if you pass$tokenin, it also sets it. getter-and-setter energy, main character behaviour fr π«Ά$ed = $rt->expirationDate([$rt])β returns the expiration date of the resumption token, and optionally sets it too if you hand it a value. yes bestie,$rtis the placeholder here, keep it exactly as written π$cls = $rt->completeListSize([$cls])β returns the cardinality of the result set, and optionally sets it. so likeβ¦ how many records total. the whole roster π$cur = $rt->cursor([$cur])β returns the index of the first record (of the current page) in the result set, and optionally sets it. it's the lil bookmark telling you where you are in the scroll π¦
π NOTE - Completing incomplete list π
okay this part is IMPORTANT, don't skip it:
The final page of a record list which has been split using resumption tokens must contain an empty resumption token.
like, the last page cannot be out here with a whole token still in it. empty token on the final page. periodt πΈ
and that's the whole page, bestie β you ate that read π β¨
this gorgeous lil doc came from perl v5.36.0, dated 2023-09-28, and it was served up as HTTP::...nToken(3pm) β mwah, bye ππ«Ά
π¦ 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