Group
Extension

Matches 1

Catalyst-ActionRole-MatchRequestAccepts ( J/JJ/JJNAPIORK/Catalyst-ActionRole-MatchRequestAccepts-0.06.tar.gz, JJNAPIORK, 2017; MetaCPAN )
Catalyst-ActionRole-MatchRequestAccepts/lib/Catalyst/ActionRole/MatchRequestAccepts.pm ( view source; MetaCPAN )
 }

    ## Match for incoming requests with HTTP Accepts: application/json
    sub for_json : Path('foo') Accept('application/json') { ... }

=head1 DESCRIPTION

Lets you specify a match for the HTTP 
t the 'our_action_json' action to consume this ActionRole.  In this
    ## example GET '/json' would only match if the client request HTTP included
    ## an Accept: application/json.

    __PACKAGE__
  action => {
        our_action_json => { Path => 'json', Accept => 'application/json' },
      });

    ## GET '/foo' will dispatch to either action 'our_action_json' or action
    ## 'our_action_ht

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.