Catalyst::ActionRole::MatchHost - Match action against domain host name


Catalyst-ActionRole-MatchHost documentation  | view source Contained in the Catalyst-ActionRole-MatchHost distribution.

Index


NAME

Top

Catalyst::ActionRole::MatchHost - Match action against domain host name

SYNOPSIS

Top

Match host name

    package MyApp::Controller::Root

    use Moose;
    BEGIN { extends 'Catalyst::Controller::ActionRole' };

    sub index :Path('/') :Does('MatchHost') :Host(^mainhost$)
    {
        my ( $self, $c ) = @_;
        ...
    }

    ...

    package MyApp::Controller::NonRoot

    use Moose;
    BEGIN { extends 'Catalyst::Controller::ActionRole' };

    sub index :Path('/') :Does('MatchHost') :HostNot(^mainhost$)
    {
        my ( $self, $c ) = @_;
        ...
    }




AUTHOR

Top

Anatoliy Lapitskiy, <nuclon at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-catalyst-action-domain at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-ActionRole-MatchHost. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Catalyst::ActionRole::MatchHost




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-ActionRole-MatchHost

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Catalyst-ActionRole-MatchHost

* CPAN Ratings

http://cpanratings.perl.org/d/Catalyst-ActionRole-MatchHost

* Search CPAN

http://search.cpan.org/dist/Catalyst-ActionRole-MatchHost/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Catalyst-ActionRole-MatchHost documentation  | view source Contained in the Catalyst-ActionRole-MatchHost distribution.