[Libwebsockets] RFC7233 HTTP Ranges support for server

Edwin van den Oetelaar oetelaar.automatisering at gmail.com
Mon Dec 12 09:35:01 CET 2016


Great work Andy,
just saying

;-)

Greetings from the Netherlands
Edwin van den Oetelaar

On Mon, Dec 12, 2016 at 6:59 AM, Andy Green <andy at warmcat.com> wrote:

> Hi -
>
> I added an implementation of RFC7233 HTTP "Ranges" to master.
>
> It's on by default but can be disabled in CMake; ESP8266 disables it
> automatically.
>
> Basically it allows seeking and requesting ranges inside served files.
>
> If it's enabled lws announces it supports it by adding a "Accept-
> Ranges: bytes" header.
>
> Lws already supports "strong validator" ETags, along with If-Range:
> support also added here it should be enough to enable safe "download
> continuation" (via 206 Partial Content) by clients that understand it,
> or automatic fallback to restart the download if the file changed (via
> 200).
>
> Multipart ranges are also supported using the full multipart/byteranges
> format.
>
> It's tested with curl as described in the commitlog
>
> https://github.com/warmcat/libwebsockets/commit/f57be392e1893c62f6784f7
> 0283ffec6cfb3a22d
>
>
> -Andy
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20161212/12a9fce9/attachment-0001.html>


More information about the Libwebsockets mailing list