test/handlers/provide_callback_missing_h.erl
raw| 1 | -module(provide_callback_missing_h). |
| 2 | |
| 3 | -export([init/2]). |
| 4 | -export([content_types_provided/2]). |
| 5 | |
| 6 | init(Req, State) -> |
| 7 | {cowboy_rest, Req, State}. |
| 8 | |
| 9 | content_types_provided(Req, State) -> |
| 10 | ct_helper_error_h:ignore(cowboy_rest, set_resp_body, 2), |
| 11 | {[{<<"text/plain">>, provide}], Req, State}. |