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

#493 and #495 cache body content #500

Conversation

ricardomomm
Copy link

Hi dear developers, not sure if it is 100% compliant with your code base, but I'll be more than welcome to refactor it if not. This is one of the tests that I did locally in order to be able to consume the Request.Body more than one time when recreating a Request object from the Scope, this fix is caching the body content inside the scope rather than a local variable.

@tomchristie
Copy link
Member

Thanks!

So we may do something like this at some point, but we'll want to have a more comprehensive look at it - eg. what should the behaviour look like when consuming the request body as a stream.

At the moment I'd like us to punt on this, but there's likely somethere here we'll come back to.

nav added a commit to nav/starlette that referenced this pull request Feb 26, 2020
nav added a commit to nav/starlette that referenced this pull request Jul 9, 2020
nav added a commit to nav/starlette that referenced this pull request Jul 22, 2020
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

Successfully merging this pull request may close these issues.

2 participants