aboutsummaryrefslogblamecommitdiffstats
path: root/test/http_SUITE_data/http_handler.erl
blob: 62e9193da293b3ee2bb2184a5028fcfaf8e12d42 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                           
 
                  
 
                  


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

-module(http_handler).

-export([init/2]).

init(Req, Opts) ->
	Headers = proplists:get_value(headers, Opts, []),
	Body = proplists:get_value(body, Opts, "http_handler"),
	{ok, cowboy_req:reply(200, Headers, Body, Req), Opts}.