| Apache2::ASP::ApacheRequest - HTTP request abstraction for Apache2::ASP |
Apache2::ASP::ApacheRequest - HTTP request abstraction for Apache2::ASP
# For internal use only. # See tests for usage examples.
To offer some level of abstraction between the Apache2::ASP manpage and its host environment, this class was created to proxy method calls (or short-circuit them).
Returns a new object.
%args should include the following:
An the Apache2::RequestRec manpage object. In its place you could use any blessed reference.
Something like /index.asp. The relative URI of the ASP script requested.
Something valid like 200 OK or 302 Found
The absolute path to the file specified in uri.
Something like /usr/local/mysite/htdocs/index.asp.
Returns 1 and does nothing else.
Adds $str to the internal string buffer.
Returns the contents of the internal string buffer (as a string).
Returns the absolute path to the script currently being executed.
Mimics the following functionality:
$r->lookup_uri->filename();
Returns the existing headers_out hash, or replaces it with one provided.
Mimics the following functionality:
$r->connection->client_socket->close();
All other methods are proxied first to the passed-in the Apache2::RequestRec manpage object, then (supposing it can't answer to the method call) to a CGI object.
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html to submit bug reports.
Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.
John Drago mailto:jdrago_999@yahoo.com
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.
| Apache2::ASP::ApacheRequest - HTTP request abstraction for Apache2::ASP |