Comments (7)
This implementation was also posted for discussion and resolution on Stack Overflow
https://stackoverflow.com/questions/49085424/
from fetch-progress-indicators.
@anthumchris SO says Page Not Found.
What is controller
up in the original post.
from fetch-progress-indicators.
StackOverflow redirects to this: https://stackoverflow.com/questions/49085424/constructing-fetch-request-with-readablestream-body does that work for you?
MDN has some good info on the controller, and I recommend starting here: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_streams
from fetch-progress-indicators.
First link is still Not Found but thanks. I will read Streams API on mdn.
from fetch-progress-indicators.
I wonder if StackOverflow is doing some special geo-based redirection. You could also try searching (with quotes) "Constructing Fetch Request with ReadableStream Body" and click the first result:
from fetch-progress-indicators.
I wonder if StackOverflow is doing some special geo-based redirection. You could also try searching (with quotes) "Constructing Fetch Request with ReadableStream Body" and click the first result:
Cannot find this in any way.
from fetch-progress-indicators.
A ReadableStream
can now be sent as a fetch()
request body (see whatwg/fetch#425). I'll plan on adding an example for upload progress indicators.
@jakearchibald wrote great article Streaming requests with the fetch API. This example shows a server responding with the streaming request it receives:
Demo: https://jsbin.com/piwewop/edit?js,output
fetch(new Request('https://dev.anthum.com/post-stream-test/', {
body: new Response('🎉').body, // new ReadableStream
duplex: 'half',
method: 'POST',
headers: { 'Content-Type': 'text/plain' },
}))
.then(response => response.text())
.then(console.log)
.catch(console.error)
_@amdiv, @fselcukcan: Apologies, please ignore original StackOverflow URL (https://stackoverflow.com/questions/49085424/), It was marked as a duplicate question and deleted.
from fetch-progress-indicators.
Related Issues (14)
- Make Mobile-Friendly
- Add Aggregate Download Progress for Multiple Assets
- Headers from original request not forwarded HOT 1
- Progress incorrect when content is gzip encoded HOT 7
- Possibility to pause the downlod HOT 5
- Simpler solution for fetch-basic HOT 1
- SSL expired HOT 2
- Use Proper Restart feature
- Add Example for inline `<img>` loading
- Network Error does not show in UI
- Mobile Safari Does Not Show Errors
- Use TransformStream in Examples
- sw-basic image doesn't display in Firefox 59.0+ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fetch-progress-indicators.