![]() |
![]()
| ![]() |
![]()
NAMEDancer2::Core::Route - Dancer2's route handler VERSIONversion 1.1.2 ATTRIBUTESmethodThe HTTP method of the route (lowercase). Required. codeThe code reference to execute when the route is ran. Required. regexpThe regular expression that defines the path of the route. Required. Coerce from Dancer2's route patterns. prefixThe prefix to prepend to the "regexp". Optional. optionsA HashRef of conditions on which the matching will depend. Optional. METHODSmatchTry to match the route with a given Dancer2::Core::Request object. Returns the hash of matching data if success (captures and values of the route against the path of the request) or "undef" if not. my $match = $route->match( $request ); executeRuns the coderef of the route. AUTHORDancer Core Developers COPYRIGHT AND LICENSEThis software is copyright (c) 2024 by Alexis Sukrieh. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|