Concord - C Discord API library
A Discord API wrapper library written in C
|
Individual requests that are scheduled to run asynchronously. More...
#include <discord-internal.h>
Data Fields | |
struct discord_ret_dispatch | dispatch |
struct discord_ret_response | response |
struct discord_attachments | attachments |
char * | reason |
struct discord_bucket * | b |
struct ccord_szbuf_reusable | body |
enum http_method | method |
char | endpoint [512] |
char | key [256] |
struct ua_conn * | conn |
CCORDcode | code |
int | retry_attempt |
pthread_cond_t * | cond |
QUEUE | entry |
Individual requests that are scheduled to run asynchronously.
REST
manager thread struct discord_ret_dispatch discord_request::dispatch |
attributes set by client for request dispatch behavior
struct discord_ret_response discord_request::response |
information for parsing response into a datatype (if possible)
struct discord_attachments discord_request::attachments |
if HTTP_MIMEPOST provide attachments for file transfer
char* discord_request::reason |
indicated reason to why the action was taken
struct discord_bucket* discord_request::b |
the request's bucket
struct ccord_szbuf_reusable discord_request::body |
request body handle
enum http_method discord_request::method |
the request's http method
char discord_request::endpoint[512] |
the request's endpoint
char discord_request::key[256] |
the request bucket's key
struct ua_conn* discord_request::conn |
the connection handler assigned
CCORDcode discord_request::code |
request's status code
int discord_request::retry_attempt |
current retry attempt (stop at rest->retry_limit)
pthread_cond_t* discord_request::cond |
synchronize synchronous requests
QUEUE discord_request::entry |
entry for discord_ratelimiter and discord_bucket queues