You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'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?
The text was updated successfully, but these errors were encountered: