LibWeb/Streams: Move "set up transform stream" to TransformStream

This is not marked as an AO in the spec, and is a publically exported
API exposed on TransformStream.
This commit is contained in:
Shannon Booth 2024-12-08 17:35:07 +13:00 committed by Jelle Raaijmakers
parent 3f572d9ab7
commit 19bbfb023a
Notes: github-actions[bot] 2024-12-11 14:12:37 +00:00
7 changed files with 84 additions and 82 deletions

View file

@ -741,7 +741,7 @@ void fetch_response_handover(JS::Realm& realm, Infrastructure::FetchParams const
process_response_end_of_body();
return WebIDL::create_resolved_promise(realm, JS::js_undefined());
});
Streams::transform_stream_set_up(transform_stream, identity_transform_algorithm, flush_algorithm);
transform_stream->set_up(identity_transform_algorithm, flush_algorithm);
// 4. Set internalResponses bodys stream to the result of internalResponses bodys stream piped through transformStream.
auto promise = Streams::readable_stream_pipe_to(internal_response->body()->stream(), transform_stream->writable(), false, false, false, {});