[99s-extend] Streaming response in cowboy question
Loïc Hoguin
essen at ninenines.eu
Wed Dec 12 22:30:46 CET 2012
On 12/12/2012 10:14 PM, Grzegorz Junka wrote:
> I am implementing a proxy on top of Cowboy. Is it possible to stream the
> response back to Cowboy as I receive it from the destination server?
>
> I am thinking about something like specifying a fun instead of Response
> Body when sending the reply so that Cowboy could call it to receive the
> response in chunks (see send_req in
> https://github.com/cmullaparthi/ibrowse/blob/master/src/ibrowse.erl).
Lookup cowboy_req:set_resp_body_fun? Tell me if that fits your needs.
--
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu
More information about the Extend
mailing list