nova_handler behaviour (NOVA vv0.8.0)
Link to this section Summary
Link to this section Callbacks
Link to this callback
init/2
Specs
init(Req, any()) -> {ok | module(), Req, any()} | {module(), Req, any(), any()}
when Req :: cowboy_req:req().
Specs
terminate(any(), map(), any()) -> ok.
Link to this section Functions
Link to this function
execute(Req, Env)
Specs
execute(Req, Env) -> {ok, Req, Env} when Req :: cowboy_req:req(), Env :: cowboy_middleware:env().
Link to this function
terminate(Reason, Req, Module)
Specs
terminate(any(), Req | undefined, module()) -> ok when Req :: cowboy_req:req().