diff --git a/user_guide_src/source/outgoing/api_responses.rst b/user_guide_src/source/outgoing/api_responses.rst index bdb853563e..0500a8ee92 100644 --- a/user_guide_src/source/outgoing/api_responses.rst +++ b/user_guide_src/source/outgoing/api_responses.rst @@ -56,8 +56,10 @@ So, if your request asks for JSON formatted data in an **Accept** header, the da ``respond*`` or ``fail*`` methods will be formatted by the ``CodeIgniter\Format\JSONFormatter`` class. The resulting JSON data will be sent back to the client. +*************** Class Reference *************** + .. php:method:: setResponseFormat($format) :param string $format: The type of response to return, either ``json`` or ``xml``