fix(wpt): stream the Fetch trickle fixture response

Model trickle.py by draining the request body, delaying headers and body
chunks, and writing TEST_TRICKLE lines according to ms/count. Preserve the
optional Content-Type omission and close-delimited response framing.

Exercise supported methods, defaults, duplicate/invalid parameters,
progressive delivery, and both fixed-length and chunked uploads.

Validation: 221 Python tests passed. With the same Moli binary, 16 WPT
cases add two passing cases and eight passing subtests, with no regressions.
No Rust source or build metadata changed.
This commit is contained in:
ldm0
2026-10-22 22:15:56 +08:00
parent b686ad8d1d
commit e4a8023cf3
@@ -5698,10 +5698,6 @@ encoding/utf-32-from-win1252.html
encoding/utf-32.html
event-timing/supported-types-consistent-with-self.html
fetch/api/abort/destroyed-context.html
fetch/api/basic/response-null-body.any.js?moli-wpt-any=dedicatedworker
fetch/api/basic/response-null-body.any.js?moli-wpt-any=window
fetch/api/basic/text-utf8.any.js?moli-wpt-any=dedicatedworker
fetch/api/basic/text-utf8.any.js?moli-wpt-any=window
fetch/api/cors/data-url-iframe.html
fetch/api/cors/data-url-shared-worker.html
fetch/api/cors/data-url-worker.html
@@ -5719,31 +5715,11 @@ fetch/api/policies/referrer-origin.html
fetch/api/policies/referrer-unsafe-url-worker.html
fetch/api/policies/referrer-unsafe-url.html
fetch/api/request/multi-globals/url-parsing.html
fetch/api/request/request-constructor-init-body-override.any.js?moli-wpt-any=dedicatedworker
fetch/api/request/request-constructor-init-body-override.any.js?moli-wpt-any=window
fetch/api/request/request-error.any.js?moli-wpt-any=dedicatedworker
fetch/api/request/request-error.any.js?moli-wpt-any=window
fetch/api/request/request-init-stream.any.js?moli-wpt-any=dedicatedworker
fetch/api/request/request-init-stream.any.js?moli-wpt-any=window
fetch/api/request/url-encoding.html
fetch/api/response/json.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/json.any.js?moli-wpt-any=window
fetch/api/response/many-empty-chunks-crash.html
fetch/api/response/multi-globals/url-parsing.html
fetch/api/response/response-body-read-task-handling.html
fetch/api/response/response-error-from-stream.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-error-from-stream.any.js?moli-wpt-any=window
fetch/api/response/response-form-data.html
fetch/api/response/response-from-stream.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-from-stream.any.js?moli-wpt-any=window
fetch/api/response/response-stream-disturbed-2.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-stream-disturbed-2.any.js?moli-wpt-any=window
fetch/api/response/response-stream-disturbed-3.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-stream-disturbed-3.any.js?moli-wpt-any=window
fetch/api/response/response-stream-disturbed-4.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-stream-disturbed-4.any.js?moli-wpt-any=window
fetch/api/response/response-stream-disturbed-5.any.js?moli-wpt-any=dedicatedworker
fetch/api/response/response-stream-disturbed-5.any.js?moli-wpt-any=window
fetch/content-length/content-length.html
fetch/nosniff/importscripts.html
fetch/security/dangling-markup/media.html