Replies: 5 comments 7 replies
-
|
This might be hard to implement, at the moment I'm not sure we have support for this from the inner libraries used (tokio mainly). But I'm definitely up for PRs investigating this chance. An alternative approach might be using the response_stream protocol feature and handle the read from Python itself. |
Beta Was this translation helpful? Give feedback.
-
|
I made an attempt to implement this. My main problem is that https://github.com/emmett-framework/granian/blob/master/src/rsgi/types.rs#L221 has no access to the |
Beta Was this translation helpful? Give feedback.
-
|
Draft PR: #159 |
Beta Was this translation helpful? Give feedback.
-
|
I think Range header support may be interesting to have for ASGI as well. I have been looking into using Starlette's |
Beta Was this translation helpful? Give feedback.
-
|
Trying to follow across a few issues, but it seems that we never exactly resolved this (in either ASGI/RSGI), right? This seems to be the latest w.r.t ASGI: django/asgiref#469. And latest w.r.t RSGI: #159 Is that right, or has some PR merged somewhere that enables Range header for file GETs in granian? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would there be a desire for http Range header support for the
response_fileRSGI response?I would like to use this when serving large video files, to allow seeking within the file.
Beta Was this translation helpful? Give feedback.
All reactions