0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/test/handlers/delete_resource_h.erl

18 lines
371 B
Erlang
Raw Normal View History

%% This module accepts a multipart media type with parameters
%% that do not include boundary.
-module(delete_resource_h).
-export([init/2]).
-export([allowed_methods/2]).
-export([delete_resource/2]).
init(Req, Opts) ->
{cowboy_rest, Req, Opts}.
allowed_methods(Req, State) ->
{[<<"DELETE">>], Req, State}.
delete_resource(#{qs := <<"missing">>}, _) ->
no_call.