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