Replies: 4 comments 2 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.
-
Would there be a desire for http Range header support for the
response_file
RSGI 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