-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fetch streaming upload #24
Comments
I'd like developers have a way to synchronously feature detect this feature. My current recommendation is: const supportsRequestStreams = (() => {
let duplexAccessed = false;
const hasContentType = new Request('', {
body: new ReadableStream(),
method: 'POST',
get duplex() {
duplexAccessed = true;
return 'half';
},
}).headers.has('Content-Type');
return duplexAccessed && !hasContentType;
})(); This tests that:
Safari has already implemented streams as bodies of Could Safari avoid implementing
|
@jakearchibald now that Yutaka left Chrome, is there someone else picking this up? I suppose it has shipped already, but it seems that I tend to agree with you with regards to feature detection, does WPT verify that by chance? |
I'll pick this up, and whatwg/fetch#1486 What's the right way to write a WPT for this? Something like:
|
Yeah, that looks correct. I suppose we'll only need this test while engines are still implementing this so maybe add a comment in case someone wonders what's up in the future. |
PR up: web-platform-tests/wpt#36048 |
Colleagues and I have looked at this and are supportive. If there is no further feedback from the WebKit community by October 10 I suggest we label this as "position: support". |
Hey awesome folks; |
@HazhoHuman I'm afraid I don't understand the question. Could you provide more context? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello -- I am terribly sorry that my comment was unhelpful. I was attempting to respond to @jakearchibald 's awesome note above. Again, I sincerely apologize for the noise. |
Closing as we've identified our position. |
Hi, just wondering if there is another issue or bugzilla ticket tracking the implementation of this feature? I was not able to find anything in a quick search. |
Request for position on fetch streaming upload
Information about the spec
Design reviews and vendor positions
Bugs tracking this feature
Anything else we need to know
Streaming upload allows web developers to attach a ReadableStream to a Request. The web developer can pass the Request to
fetch()
to upload the ReadableStream.The text was updated successfully, but these errors were encountered: