New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lower level postdata #4576
Comments
我也有此类需求,希望能得到官方支持啊,大的postData如果可以用一个 readAble 来获取就好了,直接不支持有点不方便 |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
now that the fetch api is part of nodejs then i really wish for something like this to work: page.on('request', async evt => {
/** @type {Request} */
const request = evt.request
const formData = await request.formData() // Or:
for await (const uint8 of request.body) {
console.log(uint8)
}
evt.respondWith(new Response('foo bar'), { status: 200 })
}) |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
While requiring multiple requests, it is possible to pipe multiple streams into a single stream with a cooperative client. Using an extension with background.js
On arbitrary Web page
Since we can write a script directly to the page, it is also possible to do something like creating a
Neither is a substitute for the direct functionality of Related #7863. |
postData
only takes a string and i thing that is too high abstract for me. I would like to try posting binary data, preferable with ArrayBuffer, ArrayBufferView or better yet: A byte stream. so I'm able to pipe a large file.Would be awesome if one could utilize
node-fetch
's (Or any other whatwg fetch) Request class. that's following a spec. And have something that also follows service workers request interceptor naming conventionThe text was updated successfully, but these errors were encountered: