View Source nova_handler behaviour (nova v0.10.1)
Summary
Callbacks
-callback init(Req, any()) -> {ok | module(), Req, any()} | {module(), Req, any(), any()} when Req :: cowboy_req:req().
-callback terminate(any(), map(), any()) -> ok.
Functions
-spec execute(Req, Env) -> {ok, Req, Env} when Req :: cowboy_req:req(), Env :: cowboy_middleware:env().
-spec terminate(any(), Req :: cowboy_req:req() | undefined, function()) -> ok.