Reputation: 5149
Request body
should accept ReadableStream
but if I do this:
fetch('https://httpbin.org/get')
.then(resp => {
return new Request('https://example.com', {
method: 'POST',
body: resp.body
})
})
.then(req => req.text())
.then(alert)
when I read request body getting text [object ReadableStream]
. Try this example.
How to stream data from the response to the request?
Upvotes: 0
Views: 1317
Reputation: 5149
When this issue is fixed, then response body can be streamed: https://bugs.chromium.org/p/chromium/issues/detail?id=688906
Upvotes: 1