[browser][http] Fix blocking of streaming response and abort (#80693)
authorPavel Savara <pavel.savara@gmail.com>
Thu, 19 Jan 2023 17:33:44 +0000 (18:33 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 17:33:44 +0000 (18:33 +0100)
commit03db03f5aa250f73bb111dd06cbc197ad496faf8
tree458dbca2f9b70d064b25f2d851e893504dda6610
parent70e1072edc6c1a399f77a4de7de84045193f1409
[browser][http] Fix blocking of streaming response and abort (#80693)

- return bytes of streaming response as soon as available
- fix unhandled error in reader.cancel() promise
- return cancelable promise from http_wasm_get_streamed_response_bytes
- unit test for slowly streamed chunks
- unit test for streaming and default cancellation
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs
src/mono/wasm/runtime/http.ts