Skip to content

Instantly share code, notes, and snippets.

@essen essen/map_req.erl
Created Feb 8, 2016

Embed
What would you like to do?
-module(map_req).
-export([init/2]).
init(#{method := <<"GET">>} = Req, State) ->
cowboy_req:reply(204, Req),
{ok, Req, State}.
-module(rec_req).
-export([init/2]).
-include_lib("cowboy/include/http_req.hrl").
init(#http_req{method = <<"GET">>} = Req, State) ->
cowboy_req:reply(204, Req),
{ok, Req, State}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.