NAME
HTTP::Throwable::Role::JSONBody
VERSION
version 0.002
OVERVIEW
This role does two things - accepts an optional payload
argument that should be anything you can pass to "encode_json" in JSON, and then encodes it as the body, specifying a Content-Type
of application/json
. If no payload
is provided, the body will be {}
.
AUTHOR
Matthew Horsfall <wolfsage@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Matthew Horsfall.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.