lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

is httpc:request support http range protocol?

Open hac135 opened this issue 4 years ago • 1 comments

hi, thanks for sharing the code , I want to know if http range protocol is support in httpc:request method

hac135 avatar Nov 27 '21 09:11 hac135

It is "supported", in the sense that it won't get in the way of you sending a range request. The important work of a range request happens on the server side - the client just needs to set the appropriate headers.

If you are proxying and wish to only serve downstream the correct part of the range, that's not something lua-resty-http can do for you, but I wrote an implementation of this elsewhere which you're welcome to use a reference: https://github.com/ledgetech/ledge/blob/master/lib/ledge/range.lua

pintsized avatar Nov 30 '21 20:11 pintsized