Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to not stream big response or at least override MIN_STREAMING_LENGTH #121

Open
nl-emmanuellodovice opened this issue Oct 27, 2020 · 1 comment

Comments

@nl-emmanuellodovice
Copy link

nl-emmanuellodovice commented Oct 27, 2020

Thanks for this wonderful library first of all 🙇

Right now application/json is not one of the content types that should NOT be streamed. Because of this if you are sending a relatively big json you will not be able to utilize django's cache middleware because the response is a streaming response. It would be nice if in the view itself we can disable streaming. Thank you.

@nl-emmanuellodovice
Copy link
Author

I am more than willing to open a PR for this if you are open to the idea @seocam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant