aisl-sdk/components/quick.c

33 lines
683 B
C
Raw Normal View History

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"
AislStatus
ax_quick_response(AislStream stream, AislHttpResponse http_response)
2019-04-16 14:26:37 +02:00
{
AislStatus result;
2019-04-16 14:26:37 +02:00
result = aisl_response(stream, http_response, 0);
2019-04-16 14:26:37 +02:00
if (result == AISL_SUCCESS)
aisl_flush(stream);
2019-04-16 14:26:37 +02:00
else
aisl_reject(stream);
2019-04-16 14:26:37 +02:00
return result;
}