104 struct curl_blob* blob);
Streaming HTTP(S) GET seam (a real function-pointer vtable) for the host manga downloader (v0).
ra8_err_t priv_mdl_net_curl_apply_cookies(CURL *curl, const mdl_net_bytes_t *cookies)
Enable the cookie engine and import validated caller-owned rows.
ra8_err_t priv_mdl_net_curl_classify(CURLcode code, bool overflow, long status)
Map a completed libcurl transfer to an ra8_err_t (pure classifier).
size_t priv_mdl_net_curl_buf_write(char *data, size_t size, size_t nmemb, void *user)
libcurl write callback: append into a bounded buffer, abort on cap.
size_t priv_mdl_net_curl_body_write(char *data, size_t size, size_t nmemb, void *user)
Adapt one libcurl body chunk to an injected bounded sink.
ra8_err_t priv_mdl_net_curl_apply_ca_blob(CURL *curl, const mdl_net_bytes_t *ca_pem, struct curl_blob *blob)
Bind complete caller-owned CA PEM bytes with NOCOPY semantics.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Bounded-buffer sink state for a page fetch.
char * buf
Destination buffer.
size_t len
Bytes written so far.
size_t cap
Capacity in bytes.
bool overflow
Set once the body exceeds cap.
Caller-owned lifecycle and write seam for one response body.
Read-only caller-owned byte view retained by a network backend.
Test-visible bounded adapter from libcurl chunks to an injected sink.
ra8_err_t sink_error
First callback failure, or k_ra8_ok.
uint64_t written
Bytes accepted across completed chunks.
bool overflow
Arithmetic or configured cap was hit.
uint64_t cap
Response cap, or zero for no cap.
mdl_net_body_sink_t * sink
Borrowed injected body sink.