SRU::Response(3pm)
π SRU::Response π
the manual page for SRU::Response(3pm) β User Contributed Perl Documentation, bestie. come sit with me, we're gonna factory some response objects together π«Ά
β¨ NAME β¨
SRU::Response β a whole factory for creating SRU response objects π
πΈ SYNOPSIS πΈ
my $request = SRU::Request->newFromURI( $uri );
my $response = SRU::Response->newFromRequest( $request );
look at her. two lines. iconic. π
π¦ DESCRIPTION π¦
okay so SRU::Response gives you a mechanism for creating the appropriate response object based on a request that gets passed in. that's the whole vibe. it's giving matchmaker.
like, if you hand it a SRU::Request::Scan object, you get back a SRU::Response::Scan object β with some of the particulars already filled in. no cap, it just knows. π₯
π METHODS π
newFromRequest()
this is the factory method and she is the main character. you must pass in a valid request object:
SRU::Request::ExplainSRU::Request::ScanSRU::Request::SearchRetrieve
β οΈ and if you fail to pass in the correct object?? bestie. you get returnedundef, with an appropriate error stored in$SRU::Error. so check that. fr fr. π
π INHERITED METHODS π
SRU::Resonse (yes that's how it's spelled in the source, we don't make the rules π) also serves as the base class for the three response types, which means it hands down some general functionality to the child classes. slay, inheritance.
type()
returns 'searchRetrieve', 'scan' or 'explain' depending on what type of object it is. vibe check passed. β¨
addDiagnostic()
diagnosticsXML()
stylesheetXML()
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2013 by Ed Summers. π
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page bestie, tysm for reading π₯Ήπ this was perl v5.34.0, dated 2022-06-17, and it's the SRU::Response(3pm) page. mwah. go write some responses. πΈπ¦β¨
π¦ where this page comes from
- debian bookworm: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms