fed-prims: Phase H — native-only http-listen HTTP/1.1 server + curl test
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 2m53s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 2m53s
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -132,7 +132,7 @@ check** → tests → commit → tick box → Progress-log line → push.
|
||||
- **Acceptance:** passes; WASM build still links (Sys.readdir is stubbed there).
|
||||
Satisfies fed-sx Step 3 segment replay.
|
||||
|
||||
### Phase H — HTTP/1.1 server, **native-only** (`bin/sx_server.ml`)
|
||||
### Phase H — HTTP/1.1 server, **native-only** (`bin/sx_server.ml`) ✅ DONE
|
||||
- Minimal threaded HTTP/1.1: accept loop (`Unix` + `Thread`), parse request
|
||||
line + headers + body (Content-Length), build an SX request dict
|
||||
`{:method :path :query :headers :body}`, call the SX handler callable, take an
|
||||
@@ -205,6 +205,14 @@ printf '(epoch 1)\n(crypto-sha256 "abc")\n' | \
|
||||
|
||||
_Newest first._
|
||||
|
||||
- 2026-05-18 — Phase H: `http-listen` primitive in `bin/sx_server.ml`
|
||||
(NATIVE ONLY — Unix sockets + Thread per connection, Mutex around
|
||||
the shared-runtime handler call; HTTP/1.1, Connection: close;
|
||||
req {:method :path :query :headers :body} → resp {:status :headers
|
||||
:body}). Test `bin/test_http.sh`: curl GET+query / POST+body / 404
|
||||
/ custom header — 6/6. NOT in lib, so WASM kernel untouched (boot
|
||||
green); run_tests 4897 unchanged; Erlang 530/530. Satisfies fed-sx
|
||||
Milestone 1 Step 8 transport.
|
||||
- 2026-05-18 — Phase G: `file-list-dir` primitive in
|
||||
`lib/sx_primitives.ml` (Sys.readdir → sorted names, no "."/"..";
|
||||
Sys_error prefixed like file-read, msg carries enoent/enotdir).
|
||||
|
||||
Reference in New Issue
Block a user