nova_router behaviour (nova v0.9.3) View Source
Link to this section Summary
Link to this section Types
Specs
bindings() :: #{binary() := binary()}.
Specs
host_tree() :: #host_tree{}.
Specs
options() :: #{use_strict := boolean()}.
Specs
routing_tree() :: #routing_tree{}.
Link to this section Callbacks
Specs
routes(Env :: atom()) -> Routes :: [map()].
Link to this section Functions
Specs
compile(Apps :: [atom()]) -> host_tree().
Specs
compiled_apps() -> [{App :: atom(), Prefix :: list()}].
Specs
execute(Req, Env :: cowboy_middleware:env()) -> {ok, Req, Env0} | {stop, Req} when Req :: cowboy_req:req(), Env0 :: cowboy_middleware:env().
Specs
render_status_page(StatusCode :: integer(), Req :: cowboy_req:req()) -> {ok, Req0 :: cowboy_req:req(), Env :: map()}.
Specs
render_status_page(StatusCode :: integer(), Data :: map(), Req :: cowboy_req:req()) -> {ok, Req0 :: cowboy_req:req(), Env :: map()}.
Specs
render_status_page(Host :: binary() | atom(), StatusCode :: integer(), Data :: map(), Req :: cowboy_req:req(), Env :: map()) -> {ok, Req0 :: cowboy_req:req(), Env :: map()}.
Specs
routes(Env :: atom()) -> [map()].