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

-module(cookie_informational_h).

-export([init/2]).

init(Req0, State) ->
	cowboy_req:inform(103, #{<<"set-cookie">> => [<<"informational=1">>]}, Req0),
	Req = cowboy_req:reply(204, #{<<"set-cookie">> => [<<"final=1">>]}, Req0),
	{ok, Req, State}.