Version 0.9.5 beta - added additional json/application headers for a possible REST module

This commit is contained in:
Stephan Kasdorf
2020-10-01 00:06:10 +02:00
parent 47171d3fa6
commit 9e1ee98ff7
2 changed files with 19 additions and 7 deletions

View File

@@ -83,6 +83,15 @@ class View implements IView
exit();
}
/**
* @desc setting response to application json headers
*/
public static function forwardToJsonHeader()
{
header(self::NIBIRU_CONTENT_TYPE_JSON, true);
header(self::NIBIRU_CONTENT_TYPE_CONNECTION, true);
}
/**
* @param $page
*/