OCaml server: - Accept POST/PUT/PATCH/DELETE for /sx/ paths (was GET-only) - Parse request body, query string, set per-request context - Add 16 request primitives: now, state-get/set!, request-form/arg, request-json, request-header(s), request-method/body, into, etc. - URL-encoded body parser for form submissions Handler dispatch (sx/sx/handlers/dispatch.sx): - `api` function routes URL paths like (api "click") to handler:ex-click - `call-handler` checks HTTP method, binds params, evaluates body - Handlers defined via defhandler in handlers/examples.sx now reachable Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
118 KiB
118 KiB