26 #ifndef __APISERVERCONNECTION__H__INCL__
27 #define __APISERVERCONNECTION__H__INCL__
44 static std::tr1::shared_ptr<APIServerConnection>
create(boost::asio::io_context& io);
46 boost::asio::ip::tcp::socket&
socket();
59 static bool starts_with(std::string& haystack,
const char *
const needle);
71 std::tr1::shared_ptr<std::vector<char> >
_xmlData;
80 #endif // __APISERVERCONNECTION__H__INCL__
boost::asio::streambuf _postBuffer
std::string _service_handler
static std::tr1::shared_ptr< APIServerConnection > create(boost::asio::io_context &io)
static boost::asio::const_buffers_1 _responseRedirectBegin
static boost::asio::const_buffers_1 _responseRedirectEnd
boost::asio::ip::tcp::socket & socket()
static boost::asio::const_buffers_1 _responseOK
static boost::asio::const_buffers_1 _responseNotFound
APICommandCall m_apiCommandCall
std::tr1::shared_ptr< std::vector< char > > _xmlData
std::map< std::string, std::string > APICommandCall
std::string _http_cmd_str
static boost::asio::const_buffers_1 _responseNoContent
APIServerConnection(boost::asio::io_context &io)
Handles a client connection to the API server.
boost::asio::streambuf _buffer
static bool starts_with(std::string &haystack, const char *const needle)
boost::asio::ip::tcp::socket _socket