Flask direct responses for streaming and transfer encoding chunked -


flask documentation explains how stream contents of response here possible send large quantities of data client without having keep of in memory.

i created sample app using generator , passing response in view function. when make request using curl test view, not see 'transfer-encoding:chunked' header in response.

so if flask not sending response in chunks, how streaming code avoiding need have data in memory before sending client?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -