dscrd
Discord C library
Data Fields
RestResp_s Struct Reference

Rest Response structure. More...

#include <dscrd_i.h>

Collaboration diagram for RestResp_s:
Collaboration graph
[legend]

Data Fields

char http_status [255]
 HTTP status response (if any), for example "BAD REQUEST". More...
 
int http_code
 HTTP code response, for example 404 (Not Found) More...
 
char * body
 response body More...
 
char * content_type
 body's content type (if body), for example "application/json" More...
 
int content_length
 length of response body More...
 
DiscordClientdiscord_client
 pointer DiscordClient of this response More...
 
void * api_data
 private pointer More...
 

Detailed Description

Rest Response structure.

Previously used RestResponse directly from rest-client-c library but now it's made API independent.

Field Documentation

◆ api_data

void* api_data

private pointer

◆ body

char* body

response body

◆ content_length

int content_length

length of response body

◆ content_type

char* content_type

body's content type (if body), for example "application/json"

◆ discord_client

DiscordClient* discord_client

pointer DiscordClient of this response

◆ http_code

int http_code

HTTP code response, for example 404 (Not Found)

◆ http_status

char http_status[255]

HTTP status response (if any), for example "BAD REQUEST".


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