nova_http_handler
Callback controller for handling http requests
Types
nova_http_state/0
method/0
Functions
init(Req, State) ->
- Req = cowboy_req:req()
- State = nova_http_state()
Callback function from nova_handler. This is the initial call where
all the logic is handed.
handle(Mod, Fun, Req, State) ->
- Mod = atom()
- Fun = atom()
- Req = cowboy_req:req()
- State = nova_http_state()
This function is exposed mostly cause we need to call it from nova_router.
It returns the raw handle request instead of the aggregated result returned in init/2.