feat(stdlib): add HTTP framing over TCP and close P5 C10 locally
- Add stdlib/net/http.mq.md: status/header/chunked response parsing and request
construction in .mq.md; no host HTTP/TLS implementation.
- Add stdlib/tests/http.mq.md and an end-to-end loopback test that sends a GET
over resource.open("tcp"), reads bytes, parses the response and returns
status/content-type/body.
- Update ADR-0034, status/spec/README/changelog and evidence; refresh the
bundle digest.
Gate: fmt, clippy -D warnings, 430 tests passed.
This commit is contained in:
1 parent
0d4dc1da03
commit
e981168d92
11 files changed
+486
-4
No files matched your search
@@ -68,7 +68,10 @@ an external effect and is not replayed as pure computation.
|
||||
## Consequences
|
||||
|
||||
* `.mq.md` can implement a line protocol/HTTP client parser on top of the TCP
|
||||
byte stream using the existing Memory/Text/Result primitives.
|
||||
byte stream using the existing Memory/Text/Result primitives. The bundled
|
||||
`stdlib/net/http.mq.md` provides HTTP/1.1 response parsing (status, headers,
|
||||
chunked transfer) and request construction; `http_over_tcp.rs` runs a local
|
||||
HTTP exchange through `resource.open("tcp", ...)` and the module.
|
||||
* The runtime still has no `net.request` builtin or new `HostOp`; a CLI test
|
||||
opens a local echo server, writes/reads `ping` through `resource.*`, and
|
||||
closes.
|
||||
|
||||
Reference in new issue
Block a user