libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
|
HTTP response object. More...
#include <fetch.h>
Data Fields | |
uint16_t | status |
const char * | status_text |
bool | ok |
bool | redirected |
const char * | url |
fetch_headers_t * | headers |
void * | body |
size_t | body_size |
fetch_body_type_t | body_type |
fetch_error_t | error |
const char * | error_message |
HTTP response object.
Contains the complete response including status, headers, and body.
void* fetch_response::body |
Response body data
size_t fetch_response::body_size |
Size of response body
fetch_body_type_t fetch_response::body_type |
Type of response body
fetch_error_t fetch_response::error |
Error code if request failed
const char* fetch_response::error_message |
Error message if request failed
fetch_headers_t* fetch_response::headers |
Response headers (owned by response)
bool fetch_response::ok |
True if status is 200-299
bool fetch_response::redirected |
True if response was redirected
uint16_t fetch_response::status |
HTTP status code
const char* fetch_response::status_text |
HTTP status message
const char* fetch_response::url |
Final URL after redirects