NAME

MPMinus::Dispatcher - URL Dispatching

VERSION

Version 1.04

SYNOPSIS

    package MPM::foo::Handlers;
    use strict;

    use MPMinus::Dispatcher;

    sub handler {
        my $r = shift;
        my $m = MPMinus->m;

        $m->set(
                disp => new MPMinus::Dispatcher($m->conf('project'),$m->namespace)
            ) unless $m->disp;

        ...

        return Apache2::Const::OK;
    }

DESCRIPTION

URL Dispatching

METHODS

new
    my $disp = new MPMinus::Dispatcher(
            $m->conf('project'),
            $m->namespace)
        );
get
    my $drec = $disp->get(
            -uri => $m->conf('request_uri')
        );
set
    package MPM::foo::test;
    use strict;

    ...

    $disp->set(
            -uri    => ['locarr','test',
                        ['/test.mpm',lc('/test.mpm')]
                       ],
            -init     => \&init,
            -response => \&response,
            -cleanup  => \&cleanup,

            ... and other handlers's keys , see later ...

            -meta     => {}, # See MPMinus::Transaction

        );
default

Returns Apache2::Const::NOT_FOUND only

HANDLERS AND KEYS

Supported handlers:

    -postreadrequest
    -trans
    -maptostorage
    -init
    -headerparser
    -access
    -authen
    -authz
    -type
    -fixup
    -response
    -log
    -cleanup

See "HTTP PROTOCOL HANDLERS" in MPMinus::BaseHandlers for details

HISTORY

See CHANGES file

DEPENDENCIES

mod_perl2, CTK

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

mod_perl2, CTK::Util

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

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

See LICENSE file and https://dev.perl.org/licenses/