Web::ComposableRequest::Role::JSON - Decodes JSON request bodies
package Your::Request::Class; use Moo; extends 'Web::ComposableRequest::Base'; with 'Web::ComposableRequest::Role::JSON';
Decodes JSON request bodies
Defines no public attributes
decode_body
Decodes the body as JSON if the content type is application/json
application/json
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Web-ComposableRequest. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2017 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Web::ComposableRequest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::ComposableRequest
CPAN shell
perl -MCPAN -e shell install Web::ComposableRequest
For more information on module installation, please visit the detailed CPAN module installation guide.