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
application/json. If no
payload is provided, the body will be
Matthew Horsfall <firstname.lastname@example.org>
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.