Implement marqdo-ext-http#3: the explicit @http package now owns a real
loopback domain test instead of only pure encode/parse cases.
- tests/loopback.mq.md performs two real HTTP/1.1 exchanges in one program
through the CLI's generic resource.open("tcp")/read/write/close, building
requests with http.构建请求字节 and parsing responses with
http.解析响应字节; non-ASCII bodies, explicit --allow-net 127.0.0.1 and
--allow-env HTTP_TEST_PORT only.
- scripts/loopback_server.py is a deterministic one-request-per-connection
server that records method/path/body and returns fixed status/bodies.
- scripts/run_cases.py supports kind=loopback (server lifecycle, port env,
grants, request-record assertions) without changing the pure case path.
- tests/cases/loopback.json asserts GET /one -> 200 第一个 and
POST /two -> 201 第二个 plus the request records.
- Evidence: docs/evidence-2026-11-30-loopback-domain-test.md (real CLI rc.6
candidate + Bundle 0.3.0: 2 cases PASS).
No CLI/Host/other-component change, no new Host request, no release.
cflmy
merged commit bc5db3bdc8 into main2026-11-30 16:19:02 +08:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
概述
实现
marqdo-ext-http#3:显式@httpPackage 现在拥有真实 loopback 领域测试(不再只有纯编码/解析 case)。交付
tests/loopback.mq.md:同一程序内两次真实 HTTP/1.1 交换(GET/one、POST/two),通过 CLI 通用resource.open("tcp")/read/write/close,请求用http.构建请求字节、响应用http.解析响应字节、正文用http.字节文本;非 ASCII 中文正文;仅--allow-net 127.0.0.1与显式--allow-env HTTP_TEST_PORT。scripts/loopback_server.py:确定性 loopback 服务器,逐连接读取 request head+body,按路径返回固定状态/正文并记录 method/path/body。scripts/run_cases.py:kind: loopback支持(服务器生命周期、端口 env、grants、请求记录断言);纯 case 路径不变。tests/cases/loopback.json:断言GET /one → 200 第一个、POST /two → 201 第二个与请求记录。docs/evidence-2026-11-30-loopback-domain-test.md。验证(真实,Linux x86_64 / glibc 2.43)
loopback case 不依赖
document.*,组件 CI 镜像的通用 resource/env 能力可直接运行;平台结果以本 PR CI 为准。边界 / 未验证
httpcase 覆盖。explicit-package门禁需在根 PR 复跑;本仓不冒充根验收。refs #3 #13 #11
Implement marqdo-ext-http#3: the explicit @http package now owns a real loopback domain test instead of only pure encode/parse cases. - tests/loopback.mq.md performs two real HTTP/1.1 exchanges in one program through the CLI's generic resource.open("tcp")/read/write/close, building requests with http.构建请求字节 and parsing responses with http.解析响应字节; non-ASCII bodies, explicit --allow-net 127.0.0.1 and --allow-env HTTP_TEST_PORT only. - scripts/loopback_server.py is a deterministic one-request-per-connection server that records method/path/body and returns fixed status/bodies. - scripts/run_cases.py supports kind=loopback (server lifecycle, port env, grants, request-record assertions) without changing the pure case path. - tests/cases/loopback.json asserts GET /one -> 200 第一个 and POST /two -> 201 第二个 plus the request records. - Evidence: docs/evidence-2026-11-30-loopback-domain-test.md (real CLI rc.6 candidate + Bundle 0.3.0: 2 cases PASS). No CLI/Host/other-component change, no new Host request, no release.