#include <http_client.hpp>
◆ HttpClient() [1/3]
| longbridge::HttpClient::HttpClient |
( |
| ) |
|
◆ HttpClient() [2/3]
| longbridge::HttpClient::HttpClient |
( |
HttpClient & |
| ) |
|
|
delete |
◆ HttpClient() [3/3]
| longbridge::HttpClient::HttpClient |
( |
HttpClient && |
| ) |
|
|
noexcept |
◆ ~HttpClient()
| longbridge::HttpClient::~HttpClient |
( |
| ) |
|
◆ from_apikey()
| static HttpClient longbridge::HttpClient::from_apikey |
( |
const std::string & |
app_key, |
|
|
const std::string & |
app_secret, |
|
|
const std::string & |
access_token, |
|
|
const std::optional< std::string > & |
http_url = std::nullopt |
|
) |
| |
|
static |
Create a new HttpClient for API Key authentication
- Parameters
-
◆ from_apikey_env()
Create a new HttpClient from environment variables (API Key mode)
- Parameters
-
| status | Out-param; set to the error if creation fails |
◆ from_oauth()
| static HttpClient longbridge::HttpClient::from_oauth |
( |
const OAuth & |
oauth, |
|
|
const std::optional< std::string > & |
http_url = std::nullopt |
|
) |
| |
|
static |
◆ request()
| void longbridge::HttpClient::request |
( |
const std::string & |
method, |
|
|
const std::string & |
path, |
|
|
const std::optional< std::map< std::string, std::string >> & |
headers, |
|
|
const std::optional< std::string > & |
body, |
|
|
AsyncCallback< void *, HttpResult > |
callback |
|
) |
| |
The documentation for this class was generated from the following file: