blob: 4f1858355e338fdf9cbb385f6c0cb8434d439136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* Copyright (C) 2015-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "interfaces/legacy/AddonClass.h"
namespace XBMCAddon
{
namespace xbmcwsgi
{
/// \defgroup python_xbmcwsgi_WsgiResponseBody WsgiResponseBody
/// \ingroup python_xbmcwsgi
/// @{
/// @brief **Represents the write callable returned by the start_response callable passed to a WSGI handler.**
///
/// \python_class{ WsgiResponseBody() }
///
///-------------------------------------------------------------------------
///
class WsgiResponseBody : public AddonClass
{
public:
WsgiResponseBody();
~WsgiResponseBody() override;
#ifdef DOXYGEN_SHOULD_USE_THIS
/// \ingroup python_xbmcwsgi_WsgiInputStreamIterator
/// \python_func{ operator(status, response_headers[, exc_info]) }
///
/// Callable implementation to write data to the response.
///
/// @param data string data to write
///
operator()(...);
#else
void operator()(const String& data);
#endif
#if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS
String m_data;
#endif
};
}
}
|