NAME
DiaColloDB::WWW::Handler::static - diachronic collocation db, www wrappers: static file handler
SYNOPSIS
##========================================================================
## PRELIMINARIES
use DiaColloDB::WWW::Handler::static;
##========================================================================
## Methods
$h = $class_or_obj->new(%options);
$rsp = $h->run($server, $clientConn, $httpRequest);
DESCRIPTION
DiaColloDB::WWW::Handler::static provides a DiaColloDB::WWW::Handler-compliant class for handling static data files.
Globals
- Variable: @ISA
-
DiaColloDB::WWW::Handler::static inherits from DiaColloDB::WWW::Handler.
Methods
- new
-
$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
- run
-
$rsp = $h->run($server, $clientConn, $httpRequest);
Handles a server request for a static file
$h->{file}
.
AUTHOR
Bryan Jurish <moocow@cpan.org>
COPYRIGHT AND LICENSE
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.
SEE ALSO
DiaColloDB::WWW::Handler::cgi(3pm), DiaColloDB::WWW::Handler(3pm), perl(1), ...