aboutsummaryrefslogblamecommitdiffstats
path: root/test/handlers/proxied_h.erl
blob: 818823c27022b73635e2924790ba0591c450093c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                                                           




                                                                                         
%% Feel free to use, reuse and abuse the code in this file.

-module(proxied_h).

-export([init/2]).

-spec init(cowboy_req:req(), _) -> no_return().
init(Req, _) ->
	_ = cowboy_req:stream_reply(200, #{<<"content-type">> => <<"text/plain">>}, Req),
	%% We never return to allow querying the stream_info.
	receive after infinity -> ok end.