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
Post a Comment