diff options
Diffstat (limited to 'src/chttpd/src/chttpd_handlers.erl')
-rw-r--r-- | src/chttpd/src/chttpd_handlers.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_handlers.erl b/src/chttpd/src/chttpd_handlers.erl index 930563230..c07b2097b 100644 --- a/src/chttpd/src/chttpd_handlers.erl +++ b/src/chttpd/src/chttpd_handlers.erl @@ -15,7 +15,8 @@ -export([ url_handler/2, db_handler/2, - design_handler/2 + design_handler/2, + handler_info/1 ]). -define(SERVICE_ID, chttpd_handlers). @@ -35,6 +36,10 @@ db_handler(HandlerKey, DefaultFun) -> design_handler(HandlerKey, DefaultFun) -> select(collect(design_handler, [HandlerKey]), DefaultFun). +handler_info(HttpReq) -> + Default = {'unknown.unknown', #{}}, + select(collect(handler_info, [HttpReq]), Default). + %% ------------------------------------------------------------------ %% Internal Function Definitions %% ------------------------------------------------------------------ |