cpp Rest API
Loading...
Searching...
No Matches
cpp-httplib_connection.hpp
Go to the documentation of this file.
1
2#ifndef CPP_HTTPLIB_CONNECTION_HPP_INCLUDED
3#define CPP_HTTPLIB_CONNECTION_HPP_INCLUDED
4
5#include "base_connection.hpp"
6#include "cpp_restapi_export.h"
7
8
10{
11 class CPP_RESTAPI_EXPORT Connection: public BaseConnection
12 {
13 public:
14 Connection(const std::string& address, const std::map<std::string, std::string>& headerEntries);
15 Connection(const Connection &) = delete;
16
17 Connection& operator=(const Connection &) = delete;
18
19 std::pair<std::string, std::string> fetchPage(const std::string& request) override;
20 };
21}
22
23#endif
base class with common parts for backend specific implementations
Definition base_connection.hpp:17
Definition cpp-httplib_connection.hpp:12
Connection & operator=(const Connection &)=delete
Connection(const std::string &address, const std::map< std::string, std::string > &headerEntries)
Connection(const Connection &)=delete
std::pair< std::string, std::string > fetchPage(const std::string &request) override
Definition cpp-httplib_connection.hpp:10