glitchedhttps
|
Struct containing an HTTP response's data. More...
#include <glitchedhttps_response.h>
Public Attributes | |
int | status_code |
char * | raw |
char * | server |
char * | date |
char * | content_type |
char * | content_encoding |
char * | content |
size_t | content_length |
struct glitchedhttps_header * | headers |
size_t | headers_count |
Struct containing an HTTP response's data.
char* glitchedhttps_response::content |
The response's content body (could be a JSON string, could be plain text; make sure to check out and acknowledge the "content_type" field before doing anything with this).
char* glitchedhttps_response::content_encoding |
Response body encoding (e.g. "gzip"). NUL-terminated string. If there's no response body, this remains NULL
.
size_t glitchedhttps_response::content_length |
The response's content length header value.
char* glitchedhttps_response::content_type |
Response body content type (e.g. "text/plain; charset=utf-8"). NUL-terminated. If there's no response body, this remains NULL
.
char* glitchedhttps_response::date |
Response timestamp in GMT (original string, with NUL-terminator at its end).
struct glitchedhttps_header* glitchedhttps_response::headers |
All HTTP response headers.
size_t glitchedhttps_response::headers_count |
The total amount of headers included in the HTTP response.
char* glitchedhttps_response::raw |
The full, raw returned HTTP response in plain text, with carriage returns, line breaks, final NUL-terminator and everything...
char* glitchedhttps_response::server |
The (NUL-terminated) response's server header string.
int glitchedhttps_response::status_code |
The result status code (e.g. 200 for "OK", 404 for "Not Found", etc...).