nova_handler behaviour (nova v0.9.1) View Source

Link to this section Summary

Link to this section Callbacks

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

Specs

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

Specs

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