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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -