nova_router (NOVA vv0.8.0)
Link to this section Summary
Link to this section Types
Link to this type
bindings/0
Specs
bindings() :: #{binary() := binary()}.
Link to this type
dispatch_rules/0
Specs
dispatch_rules() :: [{Host :: '_' | binary(), #host_tree{}}].
Link to this section Functions
Link to this function
compile(Apps)
Specs
compile(Apps :: [atom()]) -> dispatch_rules().
Link to this function
execute(Req, Env)
Specs
execute(Req, Env) -> {ok, Req, Env} | {stop, Req}
when Req :: cowboy_req:req(), Env :: cowboy_middleware:env().
Link to this function
lookup_url(Path)
Link to this function
lookup_url(Host, Path)
Link to this function
lookup_url(Host, Path, Method)
Link to this function
read_routefile(App)
Specs
read_routefile(App :: atom()) ->
{ok, Terms :: [term()]} |
{error, Reason :: atom() | {non_neg_integer(), atom(), atom()}}.
Link to this function
render_status_page(StatusCode, Req)
Specs
render_status_page(StatusCode :: integer(), Req :: cowboy_req:req()) ->
{ok, Req0 :: cowboy_req:req(), Env :: map()}.
Link to this function
render_status_page(StatusCode, Data, Req)
Specs
render_status_page(StatusCode :: integer(), Data :: map(), Req :: cowboy_req:req()) ->
{ok, Req0 :: cowboy_req:req(), Env :: map()}.
Link to this function
render_status_page(Host, StatusCode, Data, Req, Env)
Specs
render_status_page(Host :: binary(),
StatusCode :: integer(),
Data :: map(),
Req :: cowboy_req:req(),
Env :: map()) ->
{ok, Req0 :: cowboy_req:req(), Env :: map()}.
Link to this function