}
## 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