Commit Graph
4 Commits
Author SHA1 Message Date
waozi f12a5f1d65 Report the HTTP status of a failed download, also after a redirect
A download that failed on an HTTP error said only "download failed".
The curl header reader now parses each response's status and keeps the
final one: a curl --fail exit (22) records a 4xx or 5xx status in
http_status, including a 404 reached through a redirect. Only a 2xx
response with an unambiguous Content-Length supplies a total, as before.
The test server gains /redirect-missing, the header table checks each
status, and the test works in build/scratch instead of the system temp.

Local tests: file_download.
2026-11-23 04:23:10 -03:00
waozi a69dfdef7f Report desktop download totals while bytes arrive 2026-10-25 13:17:16 -03:00
waozi 98faba47ec Give HTTP transfer answers' length for binary answers
HttpTransferPollLength reports how many bytes an answer has, on the
desktop, Android and the browser, so a binary answer with NUL bytes, such
as an encrypted file, arrives whole. HttpTransferPoll is unchanged.
2026-10-17 01:34:36 -03:00
waozi c2755c9d14 Add HTTP transfers and raylib secondary windows
http_transfer runs HTTP requests while the application keeps drawing:
curl on a detached worker thread on desktops, the activity's transport on
Android, and fetch through the web bridge in the browser. A cancelled
transfer never writes into the caller's buffer, answers that do not fit
fail instead of arriving cut, and only http and https URLs are accepted.
Native and headless-browser tests run against a local server.

raylib_secondary_window gives a raylib application on SDL up to three
extra windows, each drawing its own Kryon tree into a render texture that
is copied to the window, so the main OpenGL context stays current. Its
probe runs on a private Xvfb display.

Both come from Inner Breeze.
2026-10-11 10:11:17 -03:00