Debian Codegraph @

test/handlers/accept_callback_missing_h.erl

raw
1 -module(accept_callback_missing_h).
2
3 -export([init/2]).
4 -export([allowed_methods/2]).
5 -export([content_types_accepted/2]).
6
7 init(Req, State) ->
8 {cowboy_rest, Req, State}.
9
10 allowed_methods(Req, State) ->
11 {[<<"PUT">>], Req, State}.
12
13 content_types_accepted(Req, State) ->
14 ct_helper_error_h:ignore(cowboy_rest, process_content_type, 3),
15 {[{<<"text/plain">>, accept}], Req, State}.