NAME
DTA::CAB::Server::HTTP::Handler::Response - CAB HTTP Server: request handler: static response
SYNOPSIS
##========================================================================
## PRELIMINARIES
use DTA::CAB::Server::HTTP::Handler::Response;
##========================================================================
## Methods
$h = $class_or_obj->new(%options);
$rsp = $h->run($server, $localPath, $clientConn, $hreq);
DESCRIPTION
Methods
- new
-
$h = $class_or_obj->new(%options);
%$h, %options:
response => $obj, ##-- HTTP::Response object
- run
-
$rsp = $h->run($server, $localPath, $clientConn, $hreq)
Returns $h->{response}, or sends a "404 not found" error to the client if not defined.
AUTHOR
Bryan Jurish <moocow@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010-2019 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.1 or, at your option, any later version of Perl 5 you may have available.
SEE ALSO
DTA::CAB::Server::HTTP::Handler(3pm), DTA::CAB::Server::HTTP(3pm), DTA::CAB(3pm), perl(1), ...