DiaColloDB::WWW::Handler::static - diachronic collocation db, www wrappers: static file handler
##======================================================================== ## PRELIMINARIES use DiaColloDB::WWW::Handler::static; ##======================================================================== ## Methods $h = $class_or_obj->new(%options); $rsp = $h->run($server, $clientConn, $httpRequest);
DiaColloDB::WWW::Handler::static provides a DiaColloDB::WWW::Handler-compliant class for handling static data files.
DiaColloDB::WWW::Handler::static inherits from DiaColloDB::WWW::Handler.
$h = $class_or_obj->new(%options);
%options, %$h:
contentType => $mimeType, ##-- override MIME type e.g. 'text/plain; charset=utf8'; default via MIME::Types::mimeTypeOf() charset => $charset, ##-- default charset for text types (default='utf8') file => $filename, ##-- filename to serve
$rsp = $h->run($server, $clientConn, $httpRequest);
Handles a server request for a static file $h->{file}.
$h->{file}
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2016 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.14.2 or, at your option, any later version of Perl 5 you may have available.
DiaColloDB::WWW::Handler::cgi(3pm), DiaColloDB::WWW::Handler(3pm), perl(1), ...
To install DiaColloDB::WWW, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DiaColloDB::WWW
CPAN shell
perl -MCPAN -e shell install DiaColloDB::WWW
For more information on module installation, please visit the detailed CPAN module installation guide.