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

The result of any HTTP request. Contains the headers, vital rate limit figures, and returned request body. More...

#include <queues.h>

+ Collaboration diagram for dpp::http_request_completion_t:

Public Attributes

std::map< std::string, std::string > headers
 
uint16_t status = 0
 
http_error error = h_success
 
std::string ratelimit_bucket
 
uint64_t ratelimit_limit = 0
 
uint64_t ratelimit_remaining = 0
 
uint64_t ratelimit_reset_after = 0
 
uint64_t ratelimit_retry_after = 0
 
bool ratelimit_global = false
 
std::string body
 

Detailed Description

The result of any HTTP request. Contains the headers, vital rate limit figures, and returned request body.

Member Data Documentation

◆ body

std::string dpp::http_request_completion_t::body

Reply body

◆ error

http_error dpp::http_request_completion_t::error = h_success

Error status (e.g. if the request could not connect at all)

◆ headers

std::map<std::string, std::string> dpp::http_request_completion_t::headers

HTTP headers of response

◆ ratelimit_bucket

std::string dpp::http_request_completion_t::ratelimit_bucket

Ratelimit bucket

◆ ratelimit_global

bool dpp::http_request_completion_t::ratelimit_global = false

True if this request has caused us to be globally rate limited

◆ ratelimit_limit

uint64_t dpp::http_request_completion_t::ratelimit_limit = 0

Ratelimit limit of requests

◆ ratelimit_remaining

uint64_t dpp::http_request_completion_t::ratelimit_remaining = 0

Ratelimit remaining requests

◆ ratelimit_reset_after

uint64_t dpp::http_request_completion_t::ratelimit_reset_after = 0

Ratelimit reset after (seconds)

◆ ratelimit_retry_after

uint64_t dpp::http_request_completion_t::ratelimit_retry_after = 0

Ratelimit retry after (seconds)

◆ status

uint16_t dpp::http_request_completion_t::status = 0

HTTP status, e.g. 200 = OK, 404 = Not found, 429 = Rate limited

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0