Module us_web_handler

Data Types

bin_content_path()

bin_content_path() = file_utils:bin_file_path()

handler_module()

handler_module() = basic_utils:module_name()

handler_return()

handler_return() = {ok | handler_module(), cowboy_req:req(), handler_state() | error}

handler_state()

handler_state() = option(map())

http_status_code()

http_status_code() = web_utils:http_status_code()

us_handler_state()

us_handler_state() = handler_state()

Function Index

get_base_footer/0
get_header/3
init/2
manage_access_log/3
manage_error_log/4
return_404/3

Function Details

get_base_footer/0

get_base_footer() -> any()

get_header/3

get_header(Title, MaybeBinCssFile, MaybeBinIconFile) -> any()

init/2

init(Req::cowboy_req:req(), HandlerState::handler_state()) -> handler_return()

manage_access_log/3

manage_access_log(HandlerReturn::handler_return(), HttpStatusCode::http_status_code(), HState::handler_state()) -> void()

manage_error_log/4

manage_error_log(Error::basic_utils:error_reason(), Req::cowboy_req:req(), BinFullFilePath::bin_content_path(), HState::handler_state()) -> void()

return_404/3

return_404(Req::cowboy_req:req(), BinFullFilepath::bin_content_path(), HState::handler_state()) -> handler_return()


Generated by EDoc