feat(http): parse and build HTTP/1.1 framing by bytes

This commit is contained in:
Marqdo Agent committed 2026-11-21 11:05:15 +08:00
1 parent 28b178fc70
commit 0d8ed44010
11 files changed
+416 -105

No files matched your search

+3
View File
@@ -37,4 +37,7 @@ fn stdlib_http_parses_chunked_responses_and_builds_requests() {
items[4]["value"],
"POST /echo HTTP/1.1\r\nHost: example.test\r\nContent-Length: 2\r\n\r\nok"
);
assert_eq!(items[5]["decimal"], "200");
assert_eq!(items[6]["value"], "你好");
assert_eq!(items[7]["value"], "POST / HTTP/1.1\r\n\r\nAB");
}