Path::...::Path(3pm)

πŸ“¦
version 1.08 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Path::...::Path(3pm) ✨

okay bestie, so this is a page from the User Contributed Perl Documentation β€” it's the manual for a lil Perl module called Path::Dispatcher::Path, and it lives inside the Path::Dispatcher fam. πŸ’–


🌸 NAME 🌸

Path::Dispatcher::Path β€” it's a path and, like, optionally some metadata too. lowkey iconic. πŸ’…


πŸŽ€ VERSION πŸŽ€

version 1.08 β€” that's the one, no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, copy it exactly bestie:

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

look at her go. πŸ₯Ήβœ¨


πŸ‘‘ ATTRIBUTES πŸ‘‘

🌈 path

a string that represents the path. and honestly? Path::Dispatcher::Path is basically just a boxed string. that's it. that's the whole thing. :)

πŸ“ metadata

a hash holding arbitrary metadata β€” whatever you want, bestie, it's your world. the Path::Dispatcher::Rule::Metadata rule is literally designed to match against members of this hash, so this is where the ✨matching✨ happens. iykyk.


🫢 SUPPORT 🫢

got bugs? 😭 don't suffer in silence, submit them through the RT bug tracker:

<https://rt.cpan.org/Public/Dist/Display.html?Name=Path-Dispatcher>

or you can email them to bug-Path-Dispatcher@rt.cpan.org (that's bug-Path-Dispatcher@rt.cpan.org). πŸ’Œ


πŸ’œ AUTHOR πŸ’œ

Shawn M Moore, <sartak at bestpractical.com> β€” king behavior, fr fr. πŸ‘‘


this software is copyright (c) 2020 by Shawn M Moore. πŸ’–

and it's free software, so you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay. periodt. ✨


okay that's the whole page, bestie, you're all caught up πŸŽ€

this was written for perl v5.30.3, dated 2020-07-13, and it's the Path::...::Path(3pm) page β€” mwah, go forth and dispatch paths πŸ’…βœ¨

πŸ“¦ where this page comes from