1Path::Dispatcher::Path(U3spemr)Contributed Perl DocumentPaattiho:n:Dispatcher::Path(3pm)
2
3
4

NAME

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

VERSION

9       version 1.08
10

SYNOPSIS

12           my $path = Path::Dispatcher::Path->new(
13               path     => "/REST/Ticket/1",
14               metadata => {
15                   http_method => "DELETE",
16               },
17           );
18
19           $path->path;                        # /REST/Ticket/1
20           $path->get_metadata("http_method"); # DELETE
21

ATTRIBUTES

23   path
24       A string representing the path. "Path::Dispatcher::Path" is basically a
25       boxed string. :)
26
27   metadata
28       A hash representing arbitrary metadata. The
29       Path::Dispatcher::Rule::Metadata rule is designed to match against
30       members of this hash.
31

SUPPORT

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

AUTHOR

39       Shawn M Moore, "<sartak at bestpractical.com>"
40
42       This software is copyright (c) 2020 by Shawn M Moore.
43
44       This is free software; you can redistribute it and/or modify it under
45       the same terms as the Perl 5 programming language system itself.
46
47
48
49perl v5.34.0                      2021-09-05       Path::Dispatcher::Path(3pm)
Impressum