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
49 lines
890 B
JSON
49 lines
890 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|