2#ifndef CONNECTION_QT_HPP
3#define CONNECTION_QT_HPP
6#include "cpp_restapi_export.h"
11 class [[deprecated(
"Use createCurlConnection() from <cpp_restapi/create_curl_connection.hpp>")]] CPP_RESTAPI_EXPORT
Connection:
public ThreadedConnection
14 Connection(
const std::string& address,
const std::map<std::string, std::string>& headerEntries);
Definition curl_connection.hpp:12
std::unique_ptr< ISseConnection > subscribe(const std::string &request, EventCallback callback) override
Subscribe to an SSE endpoint.
Response fetchPage(const std::string &request) override
Connection & operator=(const Connection &)=delete
Connection(const Connection &)=delete
Connection(const std::string &address, const std::map< std::string, std::string > &headerEntries)
BaseConnection subclass that implements fetch(url, cb) via a background std::thread.
Definition threaded_connection.hpp:25
Definition curl_connection.hpp:10
std::function< void(const SseEvent &)> EventCallback
Definition iconnection.hpp:41
HTTP response containing body, raw headers and the HTTP status code.
Definition iconnection.hpp:26