AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::rest::CURLClient Class Reference

cURL HTTP client implementation More...

#include <curlClient.hpp>

Inheritance diagram for anch::rest::CURLClient:
Collaboration diagram for anch::rest::CURLClient:

Public Member Functions

 CURLClient ()
virtual ~CURLClient ()
virtual anch::rest::Response GET (const anch::rest::Request &request) override
virtual anch::rest::Response GET (const std::string &path) override
virtual anch::rest::Response POST (const anch::rest::Request &request) override
virtual anch::rest::Response PUT (const anch::rest::Request &request) override
virtual anch::rest::Response PATCH (const anch::rest::Request &request) override
virtual anch::rest::Response DELETE (const anch::rest::Request &request) override
virtual anch::rest::Response DELETE (const std::string &path) override
virtual anch::rest::Response HEAD (const anch::rest::Request &request) override
virtual anch::rest::Response HEAD (const std::string &path) override
virtual anch::rest::Response OPTIONS (const anch::rest::Request &request) override
virtual anch::rest::Response OPTIONS (const std::string &path) override
virtual anch::rest::Response CONNECT (const anch::rest::Request &request) override
virtual anch::rest::Response CONNECT (const std::string &path) override
virtual anch::rest::Response TRACE (const std::string &path) override

Detailed Description

cURL HTTP client implementation

cURL HTTP client implementation

Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ CURLClient()

anch::rest::CURLClient::CURLClient ( )

CURLClient default constructor

◆ ~CURLClient()

virtual anch::rest::CURLClient::~CURLClient ( )
virtual

CURLClient destructor

Member Function Documentation

◆ CONNECT() [1/2]

virtual anch::rest::Response anch::rest::CURLClient::CONNECT ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute CONNECT HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ CONNECT() [2/2]

virtual anch::rest::Response anch::rest::CURLClient::CONNECT ( const std::string & path)
overridevirtual

Map path parameters and execute CONNECT HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.

◆ DELETE() [1/2]

virtual anch::rest::Response anch::rest::CURLClient::DELETE ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute DELETE HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ DELETE() [2/2]

virtual anch::rest::Response anch::rest::CURLClient::DELETE ( const std::string & path)
overridevirtual

Map path parameters and execute DELETE HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.

◆ GET() [1/2]

virtual anch::rest::Response anch::rest::CURLClient::GET ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute GET HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ GET() [2/2]

virtual anch::rest::Response anch::rest::CURLClient::GET ( const std::string & path)
overridevirtual

Execute GET HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.

◆ HEAD() [1/2]

virtual anch::rest::Response anch::rest::CURLClient::HEAD ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute HEAD HTTP method

Parameters
paramsthe path parameters
Returns
return the response

Implements anch::rest::ClientIface.

◆ HEAD() [2/2]

virtual anch::rest::Response anch::rest::CURLClient::HEAD ( const std::string & path)
overridevirtual

Map path parameters and execute HEAD HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.

◆ OPTIONS() [1/2]

virtual anch::rest::Response anch::rest::CURLClient::OPTIONS ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute OPTIONS HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ OPTIONS() [2/2]

virtual anch::rest::Response anch::rest::CURLClient::OPTIONS ( const std::string & path)
overridevirtual

Map path parameters and execute OPTIONS HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.

◆ PATCH()

virtual anch::rest::Response anch::rest::CURLClient::PATCH ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute PATCH HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ POST()

virtual anch::rest::Response anch::rest::CURLClient::POST ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute POST HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ PUT()

virtual anch::rest::Response anch::rest::CURLClient::PUT ( const anch::rest::Request & request)
overridevirtual

Map path parameters and execute PUT HTTP method

Parameters
requestthe request
Returns
return the response

Implements anch::rest::ClientIface.

◆ TRACE()

virtual anch::rest::Response anch::rest::CURLClient::TRACE ( const std::string & path)
overridevirtual

Map path parameters and execute TRACE HTTP method

Parameters
paththe path
Returns
return the response

Implements anch::rest::ClientIface.


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