setContent() setContent(string $content) : static Sets HTTP response body Parameters string $content Returns static
setJsonError() setJsonError(string $message, integer $code = 1) : static Parameters string $message integer $code Returns static
setJsonData() setJsonData(mixed $data, string $message = '') : static Parameters mixed $data string $message Returns static
setJsonContent() setJsonContent(array|\JsonSerializable|string|\Exception $content) : static Sets HTTP response body. The parameter is automatically converted to JSON Parameters array|\JsonSerializable|string|\Exception $content Returns static