/** * Outputs a response object with the given HTTP header * for JSON * @param \Cola\Service\Json\Response $resp */ public static function httpOut(Response $resp) { \header('Content-Type: application/json'); echo $resp->serialise(); }