static int _CallApplication(HttpContextRef context, RouteRef route) { DBG(("Calling ruby framework\n")); char* res = callFramework(_CreateRequestHash(context,route)); if (res) { DBG(("RESPONSE:\n")); _dbg_print_data((UInt8*)res, strlen(res)); DBG(("-- eof --\n")); DBG(("Add response to the send buffer")) CFDataAppendBytes(context->_sendBytes, (UInt8*)res, (CFIndex)strlen(res)); return 1; } return 0; }
static int _CallApplication(HttpContextRef context, RouteRef route) { RAWLOG_INFO("Calling ruby framework"); VALUE val = callFramework(_CreateRequestHash(context,route)); char* res = getStringFromValue(val); if (res) { RAWTRACE("RESPONSE:"); RAWTRACE_DATA((UInt8*)res, strlen(res)); RAWTRACE( "RESPONSE -- eof --"); RAWTRACE("Add response to the send buffer"); CFDataAppendBytes(context->_sendBytes, (UInt8*)res, (CFIndex)strlen(res)); releaseValue(val); return 1; } return 0; }