python - Flask accept request data as a stream without processing? -


i have endpoint in flask application accepts large data content. ensure flask never attempts process body, regardless of content-type, , ensures can read rquest.stream interface.

this applies couple of endpoints, not entire application.

how can configure this?

the werkzeug request object heavily relies on properties , touches request data lazily cached; e.g. when access .form attribute parsing take place, result cached.

in other words, don't touch .files, .form, .get_data(), etc. , nothing sucked memory either.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -