Group
Extension

Matches 1

HTTP-Validate ( M/MM/MMCCLENN/HTTP-Validate-0.982.tar.gz, MMCCLENN, 2018; MetaCPAN )
HTTP-Validate/lib/HTTP/Validate.pm ( view source; MetaCPAN )
arams' },
        { allow => 'other_params' },
        { content_type => 'ct', valid => ['html', 'json', 'frob=application/frobnicate'] };
    
    get '/some/path.:ct' => sub {
    
        my $valid
content type of the response will be set by the
URL path suffix, which may be either C<.html>, C<.json> or C<.frob>.

If the value given in a request does not occur in the list, or if no value is
foun
ome/type'.  You need not specify the actual content type string for the
well-known types 'html', 'json', 'xml', 'txt' or 'csv', unless you wish to
override the default given by this module.

=head2 Ru

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