11#ifndef __CWIST_HTTP_CLIENT_H__
12#define __CWIST_HTTP_CLIENT_H__
117 const char *body,
size_t body_len,
cwist_http_client * cwist_http_client_create(void)
Create a new HTTP client.
void cwist_http_client_set_altsvc_db(cwist_http_client *client, const char *path)
Set Alt-Svc cache database file path.
struct cwist_http_client cwist_http_client
Opaque HTTP client handle.
cwist_error_t cwist_http_client_request(cwist_http_client *client, const char *url, cwist_http_method_t method, cwist_http_header_node *headers, const char *body, size_t body_len, cwist_http_response **out_response)
Perform a synchronous HTTP request.
void cwist_http_client_set_ca_bundle(cwist_http_client *client, const char *path)
Set path to CA bundle for TLS verification.
void cwist_http_client_set_follow_redirects(cwist_http_client *client, int follow)
Enable or disable automatic redirect following.
void cwist_http_client_destroy(cwist_http_client *client)
Destroy an HTTP client and release all associated resources.
void cwist_http_client_enable_altsvc(cwist_http_client *client, int enabled)
Enable or disable Alt-Svc caching for HTTP/3 upgrade.
void cwist_http_client_set_timeout_ms(cwist_http_client *client, int timeout_ms)
Set request timeout in milliseconds.
HTTP Protocol Definitions and Helpers.
Integrated error structure used throughout the system.
HTTP Response Object. Supports standard string body or Zero-Copy pointer body.
Unified error code and type definitions for the CWIST system layer.