View Source nova_handler behaviour (nova v0.9.21)

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().
Link to this function

terminate(Reason, Req, Module)

View Source
-spec terminate(any(), Req | undefined, module()) -> ok when Req :: cowboy_req:req().