HTTP::OAI::Response - An OAI response
HTTP::OAI::Response inherits from HTTP::Response and supplies some utility methods for OAI.
HTTP::OAI::Response
This constructor method returns a new HTTP::OAI::Response object. Optionally set the responseDate and requestURL.
Use $r->is_error to test whether the request was successful. In addition to the HTTP response codes, the following codes may be returned:
600 - Error parsing XML or invalid OAI response
Use $r->message to obtain a human-readable error message.
Copies an HTTP::Response $r into this object.
Returns an HTTP::OAI::Headers object.
Returns and optionally adds to the OAI error list. Returns a reference to an array.
Returns and optionally sets the response date.
Returns and optionally sets the request URL.
Returns and optionally sets the OAI verb.
Return the version of the OAI protocol used by the remote site (protocolVersion is automatically changed by the underlying API).
Set the stylesheet to use in a response.
Version 2.0 of OAI uses a "request" element to contain the client's request, rather than a URI. The OAI-PERL library automatically converts from a URI into the appropriate request structure, and back again when harvesting.
The exception to this rule is for badVerb errors, where the arguments will not be available for conversion into a URI.
To install HTTP::OAI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::OAI
CPAN shell
perl -MCPAN -e shell install HTTP::OAI
For more information on module installation, please visit the detailed CPAN module installation guide.