http::server::simple::static(3pm) debian man page | unix.com

Man Page: http::server::simple::static

Operating Environment: debian

Section: 3pm

HTTP::Server::Simple::Static(3pm)			User Contributed Perl Documentation			 HTTP::Server::Simple::Static(3pm)

NAME
HTTP::Server::Simple::Static - Serve static files with HTTP::Server::Simple
VERSION
This documentation refers to HTTP::Server::Simple::Static version 0.07
SYNOPSIS
package MyServer; use base qw(HTTP::Server::Simple::CGI); use HTTP::Server::Simple::Static; sub handle_request { my ( $self, $cgi ) = @_; return $self->serve_static( $cgi, $webroot ); } package main; my $server = MyServer->new(); $server->run();
DESCRIPTION
this mixin adds a method to serve static files from your HTTP::Server::Simple subclass.
SUBROUTINES
/METHODS serve_static Takes a base directory and a web path, and tries to serve a static file. Returns 0 if the file does not exist, returns 1 on success.
BUGS AND LIMITATIONS
Bugs or wishlist requests should be submitted via http://rt.cpan.org/
SEE ALSO
AUTHOR
Stephen Quinney "sjq-perl@jadevine.org.uk" Thanks to Marcus Ramberg "marcus@thefeed.no" and Simon Cozens for initial implementation.
LICENSE AND COPYRIGHT
Copyright 2006 - 2008. Stephen Quinney "sjq-perl@jadevine.org.uk" You may distribute this code under the same terms as Perl itself. perl v5.14.2 2012-06-30 HTTP::Server::Simple::Static(3pm)
Related Man Pages
cgi::application::server(3pm) - debian
http::server::simple::cgi(3pm) - debian
json::rpc::server::daemon(3pm) - debian
mojo::server::cgi(3pm) - debian
test::http::server::simple(3pm) - debian
Similar Topics in the Unix Linux Community
Server Error 500. Total Newbie. Ugh.
HTTP server
Simple list file ls to an array
How to read files by Server Creation date wise?
Server Dashboard to Move to UserCP Using EasyPieChart.js