Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for range request queries #526
As mentioned in #523, we would like to serve some light static video content through a Phoenix-based web site and are encountering the issue described in http://stackoverflow.com/questions/36576801/serving-http-range-request-with-phoenix.
This PR adds part of the range request protocol defined in RFC 7233 to Plug.Static.
This implementation supports requests specifying a single range of bytes, which appears to be sufficient to enable video playback in Safari. A client may request multiple byte ranges in the same request, but I am not proposing to implement that in this PR.
Submitting now for preliminary / architectural review. IMHO it is not yet ready for merge.
My to do list (I will probably get back to this later in the week):