Any-Daemon-HTTP

 view release on metacpan or  search on metacpan

lib/Any/Daemon/HTTP/VirtualHost.pod  view on Meta::CPAN


  # [0.21] will call $vhost->formHandle
  $vhost->addHandler('/form' => 'formHandler');

=item $obj-E<gt>B<addHandlers>($params)

Alias for L<addHandler()|Any::Daemon::HTTP::VirtualHost/"Handler">.

=item $obj-E<gt>B<findHandler>($uri|$path|@segments)

Find the handler which matches the given $uri best.  The $uri is the
rewritten URI of the request, an URI object.  It's $path is sufficient,
may also be broken into path @segments already.

=item $obj-E<gt>B<handleRequest>( $server, $session, $request, [$uri] )

=back

=head2 Basic daemon actions

=over 4

lib/Any/Daemon/HTTP/VirtualHost.pod  view on Meta::CPAN

create the object.  When %options are provided, they are passed to
L<Any::Daemon::HTTP::Directory::new()|Any::Daemon::HTTP::Directory/"Constructors"> to create the $object.

=item $obj-E<gt>B<filename>($uri)

Translate the $uri into a filename, without checking for existence.  Returns
C<undef> is not possible.

=item $obj-E<gt>B<sourceFor>($path|$path_segments)

Find the best matching L<Any::Daemon::HTTP::Source|Any::Daemon::HTTP::Source> object, which
might be a C<::UserDirs>, a C<::Directory>, or a C<::Proxy>.

=back

=head2 Proxies

=over 4

=item $obj-E<gt>B<addProxy>($object|HASH|%options)



( run in 0.789 second using v1.01-cache-2.11-cpan-4e96b696675 )