glitchedhttps
Public Attributes | List of all members
glitchedhttps_response Struct Reference

Struct containing an HTTP response's data. More...

#include <glitchedhttps_response.h>

Collaboration diagram for glitchedhttps_response:
Collaboration graph
[legend]

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_headerheaders
 
size_t headers_count
 

Detailed Description

Struct containing an HTTP response's data.

Member Data Documentation

◆ content

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).

◆ content_encoding

char* glitchedhttps_response::content_encoding

Response body encoding (e.g. "gzip"). NUL-terminated string. If there's no response body, this remains NULL.

◆ content_length

size_t glitchedhttps_response::content_length

The response's content length header value.

◆ content_type

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.

◆ date

char* glitchedhttps_response::date

Response timestamp in GMT (original string, with NUL-terminator at its end).

◆ headers

struct glitchedhttps_header* glitchedhttps_response::headers

All HTTP response headers.

See also
glitchedhttps_header

◆ headers_count

size_t glitchedhttps_response::headers_count

The total amount of headers included in the HTTP response.

◆ raw

char* glitchedhttps_response::raw

The full, raw returned HTTP response in plain text, with carriage returns, line breaks, final NUL-terminator and everything...

◆ server

char* glitchedhttps_response::server

The (NUL-terminated) response's server header string.

◆ status_code

int glitchedhttps_response::status_code

The result status code (e.g. 200 for "OK", 404 for "Not Found", etc...).


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