HTTP::Server::Simple::Static man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

HTTP::Server::Simple::UseriContributed Perl DocHTTP::Server::Simple::Static(3)

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.1			  2008-03-19   HTTP::Server::Simple::Static(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net