antcolony
All repositories: gitoria
1.3 KB
\* One answered request. Handed back by `fetch()` and by `PendingFetch.response()`— never `new`ed. Its shape is exactly what the native side builds(`buildResponse` in fetch.zig): status, ok, url, headers, body, tag, folded inwith `>`.RESTORED 2026-08-29 (mission 257). `pending_fetch.hl` has always ended in`r > new FetchResponse()`, but this file was not in the tree — so EVERY`fetch()` and every `.response()` died with a bare `error.UndefinedVariable`at `pending_fetch.hl:42`, which is the second half of the wall the creatorhit. It was invisible for the same reason the stale `.so` was: no gate everran a fetch against a server it started itself. *\Number status = 0 \\ the HTTP status of the final response (after redirects)Boolean ok = false \\ true for 2xxString url = '' \\ the FINAL url — the last hop of a redirect chainHybrid headers = {} \\ response headers, names LOWERCASEDString body = '' \\ the body as it arrived (empty for a streamed fetch)String tag = '' \\ whatever `tag` the request carried, echoed back// The body as a String. The bytes are already here — this is a reader, not a// second wait — so it is safe to call as often as you like.text() {return body}// The body parsed as JSON. A body that is not JSON raises, like JSON.parse// anywhere else; `on Error` catches it.json() {return JSON.parse(body)}
Branches
- mainmain branch
Latest commits
- a6af7883tracker: worker box sees calendar.worldapi.org (login to copy)mre
- c613d26btemplates: bridges to external components (login.js for ident's selector) are allowed (creator 2026-09-27)mre
- 9062978ctracker: worker box sees /media/STORAGE/projects/old-tracker read-only (tracker#2 source data)mre
- 7f9660eeState of 2026-09-27, before the move to gitoriamre