flask-restplus icon indicating copy to clipboard operation
flask-restplus copied to clipboard

Suggestion: Add support for streaming

Open kurt-hectic opened this issue 7 years ago • 6 comments

I have implemented support for http streaming using the flask Response object. This can be useful when generating large responses as it avoids timeouts. In my case it has helped me to get around an annoying 30 seconds timeout on Heroku, while still being able to use the restplus object marshaling. Additional decorators could be added if people find it useful.

kurt-hectic avatar Feb 06 '19 21:02 kurt-hectic

Coverage Status

Coverage decreased (-0.04%) to 96.8% when pulling 0c10e46c3f2e356a3fc8c4ea86453692ec80ed84 on kurt-hectic:master into a8f35823fe40b2c7385632a2ad6b35b26467402c on noirbizarre:master.

coveralls avatar Feb 06 '19 21:02 coveralls

Coverage Status

Coverage decreased (-0.04%) to 96.8% when pulling 0c10e46c3f2e356a3fc8c4ea86453692ec80ed84 on kurt-hectic:master into a8f35823fe40b2c7385632a2ad6b35b26467402c on noirbizarre:master.

coveralls avatar Feb 06 '19 21:02 coveralls

Coverage Status

Coverage decreased (-0.04%) to 96.8% when pulling 0c10e46c3f2e356a3fc8c4ea86453692ec80ed84 on kurt-hectic:master into a8f35823fe40b2c7385632a2ad6b35b26467402c on noirbizarre:master.

coveralls avatar Feb 06 '19 21:02 coveralls

Coverage Status

Coverage decreased (-0.04%) to 96.8% when pulling 0c10e46c3f2e356a3fc8c4ea86453692ec80ed84 on kurt-hectic:master into a8f35823fe40b2c7385632a2ad6b35b26467402c on noirbizarre:master.

coveralls avatar Feb 06 '19 21:02 coveralls

Coverage Status

Coverage decreased (-0.04%) to 96.802% when pulling 6445eec6cecaa1e7c2b58af0895a8f080cdd5db7 on kurt-hectic:master into a8f35823fe40b2c7385632a2ad6b35b26467402c on noirbizarre:master.

coveralls avatar Feb 06 '19 21:02 coveralls

What's the status of this PR? Any chance this gets merged soon?

dnaeon avatar Jan 23 '20 10:01 dnaeon