Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
API::Requests::impl Class Reference

Classes

struct  RequestData
 

Public Member Functions

void WriteRequest (std::function< void(bool, std::string)> callback, bool success, std::string result)
 
Poco::Net::HTTPRequest ConstructRequest (const std::string &url, Poco::Net::HTTPClientSession *&session, const std::vector< std::string > &headers, const std::string &request_type)
 
std::string GetResponse (Poco::Net::HTTPClientSession *session, Poco::Net::HTTPResponse &response)
 
void Update ()
 

Private Attributes

std::vector< RequestDataRequestsVec_
 
std::mutex RequestMutex_
 

Detailed Description

Definition at line 27 of file Requests.cpp.

Member Function Documentation

◆ ConstructRequest()

Poco::Net::HTTPRequest API::Requests::impl::ConstructRequest ( const std::string & url,
Poco::Net::HTTPClientSession *& session,
const std::vector< std::string > & headers,
const std::string & request_type )

Definition at line 79 of file Requests.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetResponse()

std::string API::Requests::impl::GetResponse ( Poco::Net::HTTPClientSession * session,
Poco::Net::HTTPResponse & response )

Definition at line 107 of file Requests.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

void API::Requests::impl::Update ( )

Definition at line 325 of file Requests.cpp.

◆ WriteRequest()

void API::Requests::impl::WriteRequest ( std::function< void(bool, std::string)> callback,
bool success,
std::string result )

Definition at line 73 of file Requests.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ RequestMutex_

std::mutex API::Requests::impl::RequestMutex_
private

Definition at line 47 of file Requests.cpp.

◆ RequestsVec_

std::vector<RequestData> API::Requests::impl::RequestsVec_
private

Definition at line 46 of file Requests.cpp.


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