runtime: http_set_handler self-registers via dlsym

El programs that define `fn handle_request(method, path, body) -> String`
can now use http_serve directly without C-level glue. http_set_handler
falls back to dlsym(RTLD_DEFAULT, name) when the named handler isn't
already in the registry, picks up the El-compiled symbol, and registers
it transparently.

Closes the gap that made http_serve unusable from pure El. Verified
with a real El server on :17890 — POST /hello with body returned
{"method":"POST","path":"/hello","echo":"test body"} via curl.

dist/platform/elc rebuilt; .prev3 preserved.
This commit is contained in:
Will Anderson
2026-04-30 13:30:55 -05:00
parent 951b8d574b
commit 6bdd4a4ba9
3 changed files with 19 additions and 0 deletions
BIN
View File
Binary file not shown.
Vendored Executable
BIN
View File
Binary file not shown.