ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_curl_ctx_t Struct Reference

Private state of the libcurl backend (the vtable's ctx). More...

Collaboration diagram for mdl_curl_ctx_t:

Data Fields

CURL * curl
 Reused easy handle.
bool allow_private
 SSRF opt-in (private peers).
bool allow_cross_host
 Cross-host redirect opt-in.
uint64_t max_bytes
 Per-response cap (0 = none).
const char * proxy
 HTTP/HTTPS proxy URL.
const char * socks5
 SOCKS5 proxy URL.
mdl_net_bytes_t cookies
 Imported cookie-file bytes.
mdl_net_bytes_t ca_pem
 Caller-owned CA PEM bytes.
char origin_host [k_origin_host_max]
 Host of the current request.
mdl_req_headers_t request_headers
 Stable conditional headers.

Detailed Description

Private state of the libcurl backend (the vtable's ctx).

Definition at line 63 of file mdl_net_curl.c.

Field Documentation

◆ allow_cross_host

bool mdl_curl_ctx_t::allow_cross_host

Cross-host redirect opt-in.

Definition at line 66 of file mdl_net_curl.c.

Referenced by internal_redirect_host_ok(), and mdl_net_curl_init().

◆ allow_private

bool mdl_curl_ctx_t::allow_private

SSRF opt-in (private peers).

Definition at line 65 of file mdl_net_curl.c.

Referenced by internal_apply_security_opts(), internal_on_prereq(), and mdl_net_curl_init().

◆ ca_pem

mdl_net_bytes_t mdl_curl_ctx_t::ca_pem

Caller-owned CA PEM bytes.

Definition at line 71 of file mdl_net_curl.c.

Referenced by internal_apply_security_opts(), and mdl_net_curl_init().

◆ cookies

mdl_net_bytes_t mdl_curl_ctx_t::cookies

Imported cookie-file bytes.

Definition at line 70 of file mdl_net_curl.c.

Referenced by internal_apply_behavior_opts(), and mdl_net_curl_init().

◆ curl

CURL* mdl_curl_ctx_t::curl

◆ max_bytes

uint64_t mdl_curl_ctx_t::max_bytes

Per-response cap (0 = none).

Definition at line 67 of file mdl_net_curl.c.

Referenced by internal_curl_get_body(), and mdl_net_curl_init().

◆ origin_host

char mdl_curl_ctx_t::origin_host[k_origin_host_max]

Host of the current request.

Definition at line 75 of file mdl_net_curl.c.

Referenced by internal_apply_req(), and internal_redirect_host_ok().

◆ proxy

const char* mdl_curl_ctx_t::proxy

HTTP/HTTPS proxy URL.

Definition at line 68 of file mdl_net_curl.c.

Referenced by internal_apply_security_opts(), and mdl_net_curl_init().

◆ request_headers

mdl_req_headers_t mdl_curl_ctx_t::request_headers

Stable conditional headers.

Definition at line 76 of file mdl_net_curl.c.

Referenced by internal_curl_get_body(), and internal_curl_get_buf().

◆ socks5

const char* mdl_curl_ctx_t::socks5

SOCKS5 proxy URL.

Definition at line 69 of file mdl_net_curl.c.

Referenced by internal_apply_security_opts(), and mdl_net_curl_init().


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