NAME
HTTP::Throwable::Role::JSONBody
VERSION
version 0.001
OVERVIEW
This role does two things - accepts a 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
.
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.