D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::http_connect_info Struct Reference

Represents a HTTP scheme, hostname and port split into parts for easy use in https_client. More...

#include "httpsclient.h"

Collaboration diagram for dpp::http_connect_info:

Public Attributes

std::string hostname
 The request hostname part, e.g. More...
 
bool is_ssl
 True if the connection should be SSL. More...
 
uint16_t port
 The port number, either determined from the scheme, or from the part of the hostname after a colon ":" character. More...
 
std::string scheme
 The request scheme, e.g. More...
 

Detailed Description

Represents a HTTP scheme, hostname and port split into parts for easy use in https_client.

Member Data Documentation

◆ hostname

std::string dpp::http_connect_info::hostname

The request hostname part, e.g.

'discord.com'

Referenced by main().

◆ is_ssl

bool dpp::http_connect_info::is_ssl

True if the connection should be SSL.

Referenced by dpp::https_client::get_state(), and main().

◆ port

uint16_t dpp::http_connect_info::port

The port number, either determined from the scheme, or from the part of the hostname after a colon ":" character.

Referenced by dpp::https_client::get_state(), and main().

◆ scheme

std::string dpp::http_connect_info::scheme

The request scheme, e.g.

'https' or 'http'

Referenced by dpp::https_client::get_state(), and main().


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