migrate: own the HTTP domain module as an explicit package

Move the pre-migration net/http.mq.md content into this repository's package
entry, replacing the bundle-relative utf8 import with the public std:text/utf8
dependency. The module leaves the default Bundle and is consumed through the
explicit @http package import; the original domain test and its baseline
terminal value are carried over unchanged.

Refs cflmy/marqdo#9, cflmy/marqdo-ext-http#1
This commit was merged in pull request #2.
This commit is contained in:
cflmy committed 2026-11-27 00:07:52 +08:00
1 parent f2dde4234c
commit 368b33d241
8 files changed
+713 -6

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
{
"schema": "marqdo.package-test-case",
"schema_version": 1,
"name": "http",
"file": "http.mq.md",
"dep_alias": "http",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"decimal": "200",
"type": "int"
},
{
"type": "text",
"value": "OK"
},
{
"type": "text",
"value": "text/plain"
},
{
"type": "text",
"value": "hello world"
},
{
"type": "text",
"value": "POST /echo HTTP/1.1\r\nHost: example.test\r\nContent-Length: 2\r\n\r\nok"
},
{
"decimal": "200",
"type": "int"
},
{
"type": "text",
"value": "你好"
},
{
"type": "text",
"value": "POST / HTTP/1.1\r\n\r\nAB"
}
],
"type": "list"
}
}