gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite5b99aece5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmree5b99aec/plugins/fetch/fetch_response.hl

1.3 KB

  1. \* One answered request. Handed back by `fetch()` and by `PendingFetch.response()`
  2. — never `new`ed. Its shape is exactly what the native side builds
  3. (`buildResponse` in fetch.zig): status, ok, url, headers, body, tag, folded in
  4. with `>`.
  5. RESTORED 2026-08-29 (mission 257). `pending_fetch.hl` has always ended in
  6. `r > new FetchResponse()`, but this file was not in the tree — so EVERY
  7. `fetch()` and every `.response()` died with a bare `error.UndefinedVariable`
  8. at `pending_fetch.hl:42`, which is the second half of the wall the creator
  9. hit. It was invisible for the same reason the stale `.so` was: no gate ever
  10. ran a fetch against a server it started itself. *\
  11. Number status = 0 \\ the HTTP status of the final response (after redirects)
  12. Boolean ok = false \\ true for 2xx
  13. String url = '' \\ the FINAL url — the last hop of a redirect chain
  14. Hybrid headers = {} \\ response headers, names LOWERCASED
  15. String body = '' \\ the body as it arrived (empty for a streamed fetch)
  16. String tag = '' \\ whatever `tag` the request carried, echoed back
  17. // The body as a String. The bytes are already here — this is a reader, not a
  18. // second wait — so it is safe to call as often as you like.
  19. text() {
  20. return body
  21. }
  22. // The body parsed as JSON. A body that is not JSON raises, like JSON.parse
  23. // anywhere else; `on Error` catches it.
  24. json() {
  25. return JSON.parse(body)
  26. }

Branches

Latest commits

  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 3db7dc31merge w44-jobs-slices into w43-trkmemmre
  • 593dab6fmission 043: report, LOGmre
  • 1a5a4818boot scans back to iterate (slices measured slower: titles 114 s, episodes 141 s, persons failed); lambda per rowmre
  • 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre
  • 23375c58mission 044: report, LOG, STATUSmre
  • c6fd928emission 044: 4096 slices for tables over 200 K rows, 15 ms budget, TRACKER_SLICE_DEPTH for testsmre
  • fb057680mission 044: jobs.hl imports mergeLeft (gate found it), mission file, slices benchmre
  • 0d6293ebmission 043: mission filemre
  • d25bd14amission 044: sliced merge prepare + sliced collections prepare; jobs-dump old/new check + bulk fixturemre
  • 633ee210mission 044: sliced table scans (slices.hl, pk-range slices) for the adult/kind/status/art/credits/details-repair queuesmre
  • 55bbd619boot: one streamed pass per table (lib/bootscan.hl) instead of find(null,null) per module; follows/watches/franchises scans streammre
  • 1d465d3ere-vendor plugins to Hybriel master f9614007 (mpackdb #202 copy fix, libmpackdb sha 6fb3b9d6)mre
  • 6648ba44mission 042: real-browser E2E on ce6f2e0a re-vendor 69/0 at 390 + 1280mre
  • 3ed3a0efmission 042: gates old/new equal (browser #41 route-table regex accepts unescaped hl:web output), real-data TTFB, E2E blocked by lisbeth lockmre
  • d5b61e90LOG 042mre