2019-04-16 14:26:37 +02:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017-2019 by Löwenware Ltd
|
|
|
|
* Please, refer LICENSE file for legal information
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file quick.c
|
|
|
|
* @author Ilja Kartašov <ik@lowenware.com>
|
|
|
|
* @brief
|
|
|
|
*
|
|
|
|
* @see https://lowenware.com/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "quick.h"
|
|
|
|
|
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
AislStatus
|
|
|
|
ax_quick_response(AislStream stream, AislHttpResponse http_response)
|
2019-04-16 14:26:37 +02:00
|
|
|
{
|
2019-04-25 13:54:07 +02:00
|
|
|
AislStatus result;
|
2019-04-16 14:26:37 +02:00
|
|
|
|
2019-04-17 10:17:27 +02:00
|
|
|
result = aisl_response(stream, http_response, 0);
|
2019-04-16 14:26:37 +02:00
|
|
|
|
|
|
|
if (result == AISL_SUCCESS)
|
2019-04-17 10:17:27 +02:00
|
|
|
aisl_flush(stream);
|
2019-04-16 14:26:37 +02:00
|
|
|
else
|
2019-04-17 10:17:27 +02:00
|
|
|
aisl_reject(stream);
|
2019-04-16 14:26:37 +02:00
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|