AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::rest::WebClient Class Reference
Collaboration diagram for anch::rest::WebClient:

Public Member Functions

 WebClient (anch::rest::ClientIface &client, std::optional< std::string > basePath=std::optional< std::string >())
virtual ~WebClient ()
template<typename... P>
anch::rest::Response GET (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response GET (const std::string &path, P... params)
template<typename... P>
anch::rest::Response POST (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response PUT (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response PATCH (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response DELETE (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response DELETE (const std::string &path, P... params)
template<typename... P>
anch::rest::Response HEAD (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response HEAD (const std::string &path, P... params)
template<typename... P>
anch::rest::Response OPTIONS (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response OPTIONS (const std::string &path, P... params)
template<typename... P>
anch::rest::Response CONNECT (anch::rest::Request &request, P... params)
template<typename... P>
anch::rest::Response CONNECT (const std::string &path, P... params)
template<typename... P>
anch::rest::Response TRACE (const std::string &path, P... params)

Constructor & Destructor Documentation

◆ WebClient()

anch::rest::WebClient::WebClient ( anch::rest::ClientIface & client,
std::optional< std::string > basePath = std::optional< std::string >() )

WebClient constructor

Parameters
clientthe HTTP client implementation to use
basePaththe optional base path

◆ ~WebClient()

virtual anch::rest::WebClient::~WebClient ( )
virtual

WebClient destructor

Member Function Documentation

◆ CONNECT() [1/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::CONNECT ( anch::rest::Request & request,
P... params )

Map path parameters and execute CONNECT HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ CONNECT() [2/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::CONNECT ( const std::string & path,
P... params )

Map path parameters and execute CONNECT HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

◆ DELETE() [1/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::DELETE ( anch::rest::Request & request,
P... params )

Map path parameters and execute DELETE HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ DELETE() [2/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::DELETE ( const std::string & path,
P... params )

Map path parameters and execute DELETE HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

◆ GET() [1/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::GET ( anch::rest::Request & request,
P... params )

Map path parameters and execute GET HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ GET() [2/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::GET ( const std::string & path,
P... params )

Execute GET HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

◆ HEAD() [1/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::HEAD ( anch::rest::Request & request,
P... params )

Map path parameters and execute HEAD HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ HEAD() [2/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::HEAD ( const std::string & path,
P... params )

Map path parameters and execute HEAD HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

◆ OPTIONS() [1/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::OPTIONS ( anch::rest::Request & request,
P... params )

Map path parameters and execute OPTIONS HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ OPTIONS() [2/2]

template<typename... P>
anch::rest::Response anch::rest::WebClient::OPTIONS ( const std::string & path,
P... params )

Map path parameters and execute OPTIONS HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

◆ PATCH()

template<typename... P>
anch::rest::Response anch::rest::WebClient::PATCH ( anch::rest::Request & request,
P... params )

Map path parameters and execute PATCH HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ POST()

template<typename... P>
anch::rest::Response anch::rest::WebClient::POST ( anch::rest::Request & request,
P... params )

Map path parameters and execute POST HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ PUT()

template<typename... P>
anch::rest::Response anch::rest::WebClient::PUT ( anch::rest::Request & request,
P... params )

Map path parameters and execute PUT HTTP method

Template Parameters
Pthe path parameters types
Parameters
requestthe request
paramsthe path parameters
Returns
return the response

◆ TRACE()

template<typename... P>
anch::rest::Response anch::rest::WebClient::TRACE ( const std::string & path,
P... params )

Map path parameters and execute TRACE HTTP method

Template Parameters
Pthe path parameters types
Parameters
paththe path
paramsthe path parameters
Returns
return the response

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