aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/provide_callback_missing_h.erl
blob: c9419ad8a6fcfb7cfaa17d6a865f1ed651b63355 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
-module(provide_callback_missing_h).

-export([init/2]).
-export([content_types_provided/2]).

init(Req, State) ->
	{cowboy_rest, Req, State}.

content_types_provided(Req, State) ->
	ct_helper_error_h:ignore(cowboy_rest, set_resp_body, 2),
	{[{<<"text/plain">>, provide}], Req, State}.