[99s-extend] Big body via REST
Wu Ray
mjollnir.ray at gmail.com
Mon Mar 18 09:39:20 CET 2013
>> Hi list,
>>
>> how properly send big response (hundreds of megabytes) via REST callback? As far as I can see REST handler in cowboy handles special case for callback functions (cowboy_rest.erl, line 844): {stream, StreamFun} - is it right place for stream big response from SQL database?
>>
>Hey,
>
>If you know the size, reply with {stream, Size, StreamFun}, otherwise
>{stream, StreamFun}, with StreamFun the function that will send all the
>data to the socket.
Hi, guys,
my problem is, if the client is closed or network broken, how to
handle these situation with cowboy.
More information about the Extend
mailing list