feat: std.http handler carries an opaque ctx word (PLAN-HTTPZ A1 prep)

Server.init(cfg, handler, ctx); the handler signature gains a usize
third argument delivered verbatim per dispatch — typically a pointer
to the app's own state, since the server owns the call site. A bare
(req, resp) handler had no way to reach app state without globals.
examples/1633 pins the round trip.
This commit is contained in:
agra
2026-06-12 21:22:42 +03:00
parent 721793b4bf
commit 3a97019aa7
39 changed files with 10032 additions and 9872 deletions

View File

@@ -1389,7 +1389,7 @@ declare i1 @ascii_ieq(ptr, ptr, ptr) #0
declare ptr @reason_for(ptr, i64) #0
; Function Attrs: nounwind
declare void @Server.init(ptr sret({ { { i64, i32, i64, i64, i64, i64, i64 }, { i32 }, i32, ptr, { ptr, ptr, ptr }, ptr }, i32 }), ptr, ptr, ptr) #0
declare void @Server.init(ptr sret({ { { i64, i32, i64, i64, i64, i64, i64 }, { i32 }, i32, ptr, { ptr, ptr, ptr }, ptr, i64 }, i32 }), ptr, ptr, ptr, i64) #0
; Function Attrs: nounwind
declare void @Server.close(ptr, ptr) #0