return $self->attributes->{CaptureArgs}[0] || 0;
}
+sub list_extra_info { }
+
__PACKAGE__->meta->make_immutable;
1;
Returns the number of captures this action expects for L<Chained|Catalyst::DispatchType::Chained> actions.
+=head2 list_extra_info
+
+An array of values useful to improve debugging
+
=head2 meta
Provided by Moose.
use Moose::Role;
-requires 'match', 'match_captures';
+requires 'match', 'match_captures', 'list_extra_info';
around ['match','match_captures'], sub {
my ($orig, $self, $ctx, @args) = @_;
sub allowed_http_methods { @{shift->attributes->{Method}||[]} }
+sub list_extra_info { sort shift->allowed_http_methods }
+
1;
=head1 NAME
An array of strings that are the allowed http methods for matching this action
normalized as noted above (using X-Method* overrides).
+=head2 list_extra_info
+
+Returns an array of the allowed HTTP Methods, sorted.
+
=head2 _has_expected_http_method ($expected)
Private method which returns 1 if C<$expected> matches one of the allowed