aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/provide_callback_missing_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/provide_callback_missing_h.erl')
-rw-r--r--test/handlers/provide_callback_missing_h.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/handlers/provide_callback_missing_h.erl b/test/handlers/provide_callback_missing_h.erl
new file mode 100644
index 0000000..c9419ad
--- /dev/null
+++ b/test/handlers/provide_callback_missing_h.erl
@@ -0,0 +1,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}.