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 option to manually send out large files #839

Closed
SteffenDE opened this issue Mar 23, 2016 · 4 comments
Closed

Add option to manually send out large files #839

SteffenDE opened this issue Mar 23, 2016 · 4 comments

Comments

@SteffenDE
Copy link

I'm working on a project where I need aiohttp to send out large files (and I do not want to use an extra server). For static files there is the add_static method, but what if somebody wants to send out a large file manually from a request handler using os.sendfile (if available)?

I've written some scripts demonstrating what I achieved to do:
https://gist.github.com/SteffenDE/f1d19190cdaecb93e4a6

This works, but I wondered if there was a way to add something like this to aiohttp, e.g. as web.FileResponse?

@asvetlov
Copy link
Member

aiohttp doesn't support it yet.
See also #773

@amirouche
Copy link

any update on this?

@asvetlov
Copy link
Member

Fixed by #901

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants