aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/cookie_echo_h.erl
blob: 28c5dde59cf36a3aaa931e6738e19dbc45fdda00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
%% Feel free to use, reuse and abuse the code in this file.

-module(cookie_echo_h).

-export([init/2]).

init(Req, State) ->
	{ok, cowboy_req:reply(200,
		#{<<"content-type">> => <<"text/plain">>},
		cowboy_req:header(<<"cookie">>, Req, <<"UNDEF">>),
		Req), State}.