0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00
cowboy/doc/src
Loïc Hoguin d7b7580b39
Add sendfile support to cowboy_req:stream_body
It is now possible to stream one or more sendfile tuples.
A simple example of what can now be done would be for
example to build a tar file on the fly using the sendfile
syscall for sending the files, or to support Range requests
with more than one range with the sendfile syscall.

When using cowboy_compress_h unfortunately we have to read
the file in order to send it. More options will be added
at a later time to make sure users don't read too much
into memory. This is a new feature however so existing
code is not affected.

Also rework cowboy_http's data sending to be flatter.
2018-11-09 17:42:37 +01:00
..
guide Add the rate_limited/2 REST callback 2018-11-04 11:58:59 +01:00
manual Add sendfile support to cowboy_req:stream_body 2018-11-09 17:42:37 +01:00
specs Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00