#include <Requests.h>
|
| Requests () |
|
| ~Requests () |
|
| Requests (const Requests &)=delete |
|
| Requests (Requests &&)=delete |
|
Requests & | operator= (const Requests &)=delete |
|
Requests & | operator= (Requests &&)=delete |
|
ARK_API bool | CreateGetRequest (const std::string &url, const std::function< void(bool, std::string)> &callback, std::vector< std::string > headers={}) |
| Creates an async GET Request that runs in another thread but calls the callback from the main thread.
|
|
ARK_API bool | CreatePostRequest (const std::string &url, const std::function< void(bool, std::string)> &callback, const std::string &post_data, std::vector< std::string > headers={}) |
| Creates an async POST Request with application/x-www-form-urlencoded content type that runs in another thread but calls the callback from the main thread.
|
|
ARK_API bool | CreatePostRequest (const std::string &url, const std::function< void(bool, std::string)> &callback, const std::string &post_data, const std::string &content_type, std::vector< std::string > headers={}) |
| Creates an async POST Request that runs in another thread but calls the callback from the main thread.
|
|
ARK_API bool | CreatePostRequest (const std::string &url, const std::function< void(bool, std::string)> &callback, const std::vector< std::string > &post_ids, const std::vector< std::string > &post_data, std::vector< std::string > headers={}) |
| Creates an async POST Request that runs in another thread but calls the callback from the main thread.
|
|
ARK_API bool | CreateDeleteRequest (const std::string &url, const std::function< void(bool, std::string)> &callback, std::vector< std::string > headers={}) |
| Creates an async DELETE Request that runs in another thread but calls the callback from the main thread.
|
|
Definition at line 10 of file Requests.h.
◆ Requests() [1/3]
API::Requests::Requests |
( |
| ) |
|
◆ ~Requests()
API::Requests::~Requests |
( |
| ) |
|
◆ Requests() [2/3]
API::Requests::Requests |
( |
const Requests & | | ) |
|
|
delete |
◆ Requests() [3/3]
◆ CreateDeleteRequest()
bool API::Requests::CreateDeleteRequest |
( |
const std::string & | url, |
|
|
const std::function< void(bool, std::string)> & | callback, |
|
|
std::vector< std::string > | headers = {} ) |
Creates an async DELETE Request that runs in another thread but calls the callback from the main thread.
- Parameters
-
request | URL |
the | callback function, binds sucess(bool) and result(string), result is error code if request failed and the response otherwise |
included | headers |
Definition at line 292 of file Requests.cpp.
◆ CreateGetRequest()
bool API::Requests::CreateGetRequest |
( |
const std::string & | url, |
|
|
const std::function< void(bool, std::string)> & | callback, |
|
|
std::vector< std::string > | headers = {} ) |
Creates an async GET Request that runs in another thread but calls the callback from the main thread.
- Parameters
-
request | URL |
the | callback function, binds sucess(bool) and result(string), result is error code if request failed and the response otherwise |
included | headers |
Definition at line 129 of file Requests.cpp.
◆ CreatePostRequest() [1/3]
bool API::Requests::CreatePostRequest |
( |
const std::string & | url, |
|
|
const std::function< void(bool, std::string)> & | callback, |
|
|
const std::string & | post_data, |
|
|
const std::string & | content_type, |
|
|
std::vector< std::string > | headers = {} ) |
Creates an async POST Request that runs in another thread but calls the callback from the main thread.
- Parameters
-
request | URL |
the | callback function, binds sucess(bool) and result(string), result is error code if request failed and the response otherwise |
data | to post |
content | type |
included | headers |
Definition at line 200 of file Requests.cpp.
◆ CreatePostRequest() [2/3]
bool API::Requests::CreatePostRequest |
( |
const std::string & | url, |
|
|
const std::function< void(bool, std::string)> & | callback, |
|
|
const std::string & | post_data, |
|
|
std::vector< std::string > | headers = {} ) |
Creates an async POST Request with application/x-www-form-urlencoded content type that runs in another thread but calls the callback from the main thread.
- Parameters
-
request | URL |
the | callback function, binds sucess(bool) and result(string), result is error code if request failed and the response otherwise |
data | to post |
included | headers |
Definition at line 162 of file Requests.cpp.
◆ CreatePostRequest() [3/3]
bool API::Requests::CreatePostRequest |
( |
const std::string & | url, |
|
|
const std::function< void(bool, std::string)> & | callback, |
|
|
const std::vector< std::string > & | post_ids, |
|
|
const std::vector< std::string > & | post_data, |
|
|
std::vector< std::string > | headers = {} ) |
Creates an async POST Request that runs in another thread but calls the callback from the main thread.
- Parameters
-
request | URL |
the | callback function, binds sucess(bool) and result(string), result is error code if request failed and the response otherwise |
data | key |
data | value |
included | headers |
Definition at line 238 of file Requests.cpp.
◆ Get()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pimpl
std::unique_ptr<impl> API::Requests::pimpl |
|
private |
The documentation for this class was generated from the following files:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/version/Core/Public/Requests.h
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/version/Core/Private/Tools/Requests.cpp