DTA::CAB::Server::HTTP::Handler::QueryList - CAB HTTP Server: request handler: analyzer list queries
##========================================================================
## PRELIMINARIES
use DTA::CAB::Server::HTTP::Handler::QueryList;
##========================================================================
## Methods: API
$h = $class_or_obj->new(%options);
$bool = $h->prepare($server);
$bool = $path->run($server, $localPath, $clientSocket, $httpRequest);
DTA::CAB::Server::HTTP::Handler::QueryList is a request handler class for use with a DTA::CAB::Server::HTTP server which handles analyzer list queries for a selected DTA::CAB::Server::HTTP::Handler::Query handler.
DTA::CAB::Server::HTTP::Handler::QueryList inherits from DTA::CAB::Server::HTTP::Handler::CGI and implements the DTA::CAB::Server::HTTP::Handler API.
$h = $class_or_obj->new(%options);
%$h, %options:
(
##-- INHERITED from Handler::CGI
#encoding => $defaultEncoding, ##-- default encoding (UTF-8)
allowGet => $bool, ##-- allow GET requests? (default=1)
allowPost => $bool, ##-- allow POST requests? (default=1)
allowList => $bool, ##-- if true, allowed analyzers will be listed for 'PATHROOT/.../list' paths
pushMode => $mode, ##-- push mode for addVars (default='keep')
##
##-- NEW in Handler::QueryList
qh => $qh, ##-- associated query handler
)
$bool = $h->prepare($server);
Checks that $h->{qh} is defined.
$bool = $path->run($server, $localPath, $clientSocket, $httpRequest);
Process $httpRequest matching $localPath as CGI form-encoded analyzer list query. The following CGI form parameters are supported:
(
a => $analyerRegex, ##-- analyzer regex in %{$srv->{as}}
fmt => $format, ##-- I/O format
#enc => $enc, ##-- I/O encoding
pretty => $level, ##-- pretty-printing level
raw => $bool, ##-- if true, data will be returned as text/plain (default=$h->{returnRaw})
)
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2011-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.
DTA::CAB::Server::HTTP::Handler::Query(3pm), DTA::CAB::Server::HTTP::Handler::CGI(3pm), DTA::CAB::Server::HTTP::Handler(3pm), DTA::CAB::Server::HTTP(3pm), DTA::CAB(3pm), perl(1), ...
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'