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

Streaming response bodies #28

Merged
merged 5 commits into from
Oct 21, 2020
Merged

Streaming response bodies #28

merged 5 commits into from
Oct 21, 2020

Conversation

The-EDev
Copy link
Member

Basically, if a response is larger than 1MB, it gets streamed the same way a static file does, this makes it so large responses don't get the 5 second timeout normal responses get

Note: this might be a problem when considering something like a DOS attack.

Closes #16

using the same system for static file serving
@The-EDev The-EDev requested a review from mrozigor October 21, 2020 01:12
@The-EDev
Copy link
Member Author

I want whatever the coveralls bot is smoking.

The function is called but its first line is not covered.

@The-EDev The-EDev merged commit d966f43 into master Oct 21, 2020
@The-EDev The-EDev deleted the stream_body branch October 21, 2020 20:52
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.

Streaming response
2 participants