NAME

HTTP::Server::Zaphod - HTTP server for Zaphod

SYNOPSIS

#!/usr/bin/perl -w use lib 'lib'; use HTTP::Server::Zaphod; use Zaphod::Session;

    my $httpd = HTTP::Server::Zaphod->new(
        template    => 'codeview.tt',
        static      => 'static',
        port        => 8080,
        document    => "Hello World\nThis is a test\nwith some lines\n",
        session_dir => 'sessions',
        save_count  => 500,
    );
    #close STDERR;
    #$httpd->background();
    $httpd->run();

METHODS

HTTP::Server::Zaphod->new ARGS

Constructs a new server from the arguments given.

The following keys are valid:

  document      - the document every L<Zaphod::Editor>
                  instance will be initialized with
  session_dir   - the directory where sessions will be
                  serialized into
  save_count    - the number of requests after which
                  all sessions are auto-saved

The remaining arguments will be passed onto HTTP::Server::Sajax.

AUTHOR

Written by Max Maischein <corion@cpan.org>

Copyright Max Maischein 2005,2006; All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Zaphod