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

HTTP client interface. More...

#include <clientIface.hpp>

Inheritance diagram for anch::rest::ClientIface:
Collaboration diagram for anch::rest::ClientIface:

Public Member Functions

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

Detailed Description

HTTP client interface.

Interface for HTTP client implentation

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

◆ CONNECT() [1/2]

virtual anch::rest::Response anch::rest::ClientIface::CONNECT ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute CONNECT HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ CONNECT() [2/2]

virtual anch::rest::Response anch::rest::ClientIface::CONNECT ( const std::string & path)
pure virtual

Map path parameters and execute CONNECT HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ DELETE() [1/2]

virtual anch::rest::Response anch::rest::ClientIface::DELETE ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute DELETE HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ DELETE() [2/2]

virtual anch::rest::Response anch::rest::ClientIface::DELETE ( const std::string & path)
pure virtual

Map path parameters and execute DELETE HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ GET() [1/2]

virtual anch::rest::Response anch::rest::ClientIface::GET ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute GET HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ GET() [2/2]

virtual anch::rest::Response anch::rest::ClientIface::GET ( const std::string & path)
pure virtual

Execute GET HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ HEAD() [1/2]

virtual anch::rest::Response anch::rest::ClientIface::HEAD ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute HEAD HTTP method

Parameters
paramsthe path parameters
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ HEAD() [2/2]

virtual anch::rest::Response anch::rest::ClientIface::HEAD ( const std::string & path)
pure virtual

Map path parameters and execute HEAD HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ OPTIONS() [1/2]

virtual anch::rest::Response anch::rest::ClientIface::OPTIONS ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute OPTIONS HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ OPTIONS() [2/2]

virtual anch::rest::Response anch::rest::ClientIface::OPTIONS ( const std::string & path)
pure virtual

Map path parameters and execute OPTIONS HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ PATCH()

virtual anch::rest::Response anch::rest::ClientIface::PATCH ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute PATCH HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ POST()

virtual anch::rest::Response anch::rest::ClientIface::POST ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute POST HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ PUT()

virtual anch::rest::Response anch::rest::ClientIface::PUT ( const anch::rest::Request & request)
pure virtual

Map path parameters and execute PUT HTTP method

Parameters
requestthe request
Returns
return the response

Implemented in anch::rest::CURLClient.

◆ TRACE()

virtual anch::rest::Response anch::rest::ClientIface::TRACE ( const std::string & path)
pure virtual

Map path parameters and execute TRACE HTTP method

Parameters
paththe path
Returns
return the response

Implemented in anch::rest::CURLClient.


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