aboutsummaryrefslogblamecommitdiffstats
path: root/test/handlers/custom_req_fields_h.erl
blob: 8d77b2da8f19801d20c6b59aac48adbe301a17ef (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                    
%% This module adds custom fields to the Req object.
%% It is only meant to be checked by Dialyzer.

-module(custom_req_fields_h).

-export([init/2]).

-spec init(Req, Opts) -> {ok, Req, Opts} when Req::cowboy_req:req().
init(Req, Opts) ->
	{ok, Req#{'_myapp_auth_method' => pubkey}, Opts}.