Debian Codegraph @

test/handlers/custom_req_fields_h.erl

raw
1 %% This module adds custom fields to the Req object.
2 %% It is only meant to be checked by Dialyzer.
3
4 -module(custom_req_fields_h).
5
6 -export([init/2]).
7
8 -spec init(Req, Opts) -> {ok, Req, Opts} when Req::cowboy_req:req().
9 init(Req, Opts) ->
10 {ok, Req#{'_myapp_auth_method' => pubkey}, Opts}.