logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Path::Dispatcher::Path - path and some optional metadata

Attributes

path
       A string representing the path. "Path::Dispatcher::Path" is basically a boxed string. :)

   metadata
       A hash representing arbitrary metadata. The Path::Dispatcher::Rule::Metadata rule is designed to match
       against members of this hash.

Author

       Shawn M Moore, "<sartak at bestpractical.com>"

Name

       Path::Dispatcher::Path - path and some optional metadata

Support

       Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Path-
       Dispatcher> (or bug-Path-Dispatcher@rt.cpan.org <mailto:bug-Path-Dispatcher@rt.cpan.org>).

Synopsis

           my $path = Path::Dispatcher::Path->new(
               path     => "/REST/Ticket/1",
               metadata => {
                   http_method => "DELETE",
               },
           );

           $path->path;                        # /REST/Ticket/1
           $path->get_metadata("http_method"); # DELETE

Version

       version 1.08

See Also