Skip to content

Instantly share code, notes, and snippets.

@athulmurali
Created October 1, 2019 02:53
Show Gist options
  • Save athulmurali/1058dce3463390eb4d1d055e6605bc35 to your computer and use it in GitHub Desktop.
Save athulmurali/1058dce3463390eb4d1d055e6605bc35 to your computer and use it in GitHub Desktop.
Practise:
1. Create a js based html with button
2. Click button to call flask api
3. Flask api sends response as stream
4. Request gets closed
-- Flask :
1. Use a sample stream
2. Develop an api that returns a stream to download
Send response as stream in python
https://stackoverflow.com/questions/24318084/flask-make-response-with-large-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment