cpp Rest API
Loading...
Searching...
No Matches
cpp_restapi::CurlBackend::Connection Class Reference

#include <curl_connection.hpp>

Inheritance diagram for cpp_restapi::CurlBackend::Connection:
cpp_restapi::BaseConnection cpp_restapi::IConnection

Public Member Functions

 Connection (const std::string &address, const std::map< std::string, std::string > &headerEntries)
 
 Connection (const Connection &)=delete
 
 ~Connection ()
 
Connectionoperator= (const Connection &)=delete
 
std::pair< std::string, std::string > fetchPage (const std::string &request) override
 
- Public Member Functions inherited from cpp_restapi::BaseConnection
 BaseConnection (const std::string &address, const std::map< std::string, std::string > &headerEntries)
 
std::string get (const std::string &) final
 perform a request to api
 
const std::string & url () const final
 return API url
 
- Public Member Functions inherited from cpp_restapi::IConnection
virtual ~IConnection ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from cpp_restapi::BaseConnection
const std::map< std::string, std::string > & getHeaderEntries () const
 
const std::string & address () const
 

Constructor & Destructor Documentation

◆ Connection() [1/2]

cpp_restapi::CurlBackend::Connection::Connection ( const std::string & address,
const std::map< std::string, std::string > & headerEntries )

◆ Connection() [2/2]

cpp_restapi::CurlBackend::Connection::Connection ( const Connection & )
delete

◆ ~Connection()

cpp_restapi::CurlBackend::Connection::~Connection ( )

Member Function Documentation

◆ fetchPage()

std::pair< std::string, std::string > cpp_restapi::CurlBackend::Connection::fetchPage ( const std::string & request)
overridevirtual

◆ operator=()

Connection & cpp_restapi::CurlBackend::Connection::operator= ( const Connection & )
delete

The documentation for this class was generated from the following file: