The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTTP::Message::JSON - a very simple superclass for JSON HTTP messages

DESCRIPTION

This is a very simple superclass used by HTTP::Request::JSON and HTTP::Response::JSON. It overrides the default behaviour of the HTTP::Headers method content_is_text.

content_is_text

Returns TRUE if this is a message with content type application/json. Otherwise uses the default behaviour of HTTP::Headers.