DESCRIPTION

\*(C`HTTP::OAI::Response\*(C' inherits from HTTP::Response and supplies some utility methods for \s-1OAI\s0.

METHODS

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 \s-1HTTP\s0 response codes, the following codes may be returned: 600 - Error parsing \s-1XML\s0 or invalid \s-1OAI\s0 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 \s-1OAI\s0 error list. Returns a reference to an array. Returns and optionally sets the response date. Returns and optionally sets the request \s-1URL\s0. Returns and optionally sets the \s-1OAI\s0 verb. Return the version of the \s-1OAI\s0 protocol used by the remote site (protocolVersion is automatically changed by the underlying \s-1API\s0). Set the stylesheet to use in a response.

NOTE - requestURI/request

Version 2.0 of \s-1OAI\s0 uses a \*(L"request\*(R" element to contain the client's request, rather than a \s-1URI\s0. The OAI-PERL library automatically converts from a \s-1URI\s0 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 \s-1URI\s0.