Stream & Multipart
1. Generator
2. Multipart
Implement in-place updates = _multipart _response.
Multipart responses
a header includes one of the multipart content types
parts, separated by a _boundary _marker
3. Video Streaming Server = generator + multipart
4. Limitation
Regular request: [1]web worker receives a request, [2]invoke handler, [3]return response, [4]the worker is free, and is available for another request.
Stream request: A worker will stay locked to the client until the client disconnects.
Last updated
Was this helpful?