#include <boost/asio/ssl/context.hpp>
#include <nlohmann/json.hpp>
#include <optional>
Go to the source code of this file.
|
| using | json = nlohmann::json |
| |
|
| void | hexchar (unsigned char c, unsigned char &hex1, unsigned char &hex2) |
| |
| std::string | urlencode (std::string s) |
| |
| void | load_ssl_certificates (boost::asio::ssl::context &ssl_context) |
| |
| bool | has_value (const json &j, const std::string &key) |
| |
| template<class T > |
| T | get_or_else (const json &j, const std::string &key, const T &_default) |
| |
| template<class T > |
| std::optional< T > | get_optional (const json &j, const std::string &key) |
| |
◆ API_PREFIX
| #define API_PREFIX "/api/v10" |
◆ DISCORD_HOST
| #define DISCORD_HOST "discord.com" |
◆ DLL_EXPORT
◆ GATEWAY_URL
| #define GATEWAY_URL "wss://gateway.discord.gg?v=10&encoding=json&compress=zlib-stream" |
◆ VERSION
◆ json
| using json = nlohmann::json |
◆ get_optional()
template<class T >
| std::optional< T > get_optional |
( |
const json & | j, |
|
|
const std::string & | key ) |
◆ get_or_else()
template<class T >
| T get_or_else |
( |
const json & | j, |
|
|
const std::string & | key, |
|
|
const T & | _default ) |
◆ has_value()
| bool has_value |
( |
const json & | j, |
|
|
const std::string & | key ) |
|
inline |
◆ hexchar()
| void hexchar |
( |
unsigned char | c, |
|
|
unsigned char & | hex1, |
|
|
unsigned char & | hex2 ) |
◆ load_ssl_certificates()
| void load_ssl_certificates |
( |
boost::asio::ssl::context & | ssl_context | ) |
|
◆ urlencode()
| std::string urlencode |
( |
std::string | s | ) |
|