Ark Server API (ASA) - 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 35 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 90 of file Requests.cpp.

◆ GetResponse()

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

Definition at line 118 of file Requests.cpp.

◆ Update()

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

Definition at line 400 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 84 of file Requests.cpp.

Member Data Documentation

◆ RequestMutex_

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

Definition at line 55 of file Requests.cpp.

◆ RequestsVec_

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

Definition at line 54 of file Requests.cpp.


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