identt
Public Types | Public Member Functions | List of all members
identt::query::HttpClient Class Reference

Public Types

using GetParamsT = std::unordered_map< std::string, std::string >
 

Public Member Functions

 HttpClient ()
 constructor More...
 
 HttpClient (const HttpClient &)=delete
 make noncopyable
 
HttpClientoperator= (const HttpClient &)=delete
 
virtual ~HttpClient ()
 destructor
 
bool GetDefault (::identt::utils::SharedTable::pointer stptr, std::string url, cpr::Parameters myparams, std::string &returns, bool nothrow=false)
 GetDefault : send json to remote and get output. More...
 
bool PostJson (::identt::utils::SharedTable::pointer stptr, std::string url, std::string &payload, std::string &returns, bool nothrow=false)
 PostJson : send json to remote and get output. More...
 

Constructor & Destructor Documentation

§ HttpClient()

identt::query::HttpClient::HttpClient ( )

constructor

Member Function Documentation

§ GetDefault()

bool identt::query::HttpClient::GetDefault ( ::identt::utils::SharedTable::pointer  stptr,
std::string  url,
cpr::Parameters  myparams,
std::string &  returns,
bool  nothrow = false 
)

GetDefault : send json to remote and get output.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
urlstd::string url
myparamscpr::Parameters parameters
returnsstd::string& returns
nothrowbool dont throw if true
Returns
bool status true if ok

§ PostJson()

bool identt::query::HttpClient::PostJson ( ::identt::utils::SharedTable::pointer  stptr,
std::string  url,
std::string &  payload,
std::string &  returns,
bool  nothrow = false 
)

PostJson : send json to remote and get output.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
urlstd::string url
payloadstd::string& payload
returnsstd::string& returns
nothrowbool dont throw if true
Returns
bool status true if ok

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