aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_metrics_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-10-31 11:45:04 +0100
committerLoïc Hoguin <[email protected]>2018-10-31 14:11:45 +0100
commit473e3fb82bd56a984dcf8936a51e3fd8affcb8f4 (patch)
treec9f126c7117f271b4aa8c739bb5178b9671c9d10 /src/cowboy_metrics_h.erl
parenta8335c63df31f21d88e9d7d1f2b64d32a674cd7a (diff)
downloadcowboy-473e3fb82bd56a984dcf8936a51e3fd8affcb8f4.tar.gz
cowboy-473e3fb82bd56a984dcf8936a51e3fd8affcb8f4.tar.bz2
cowboy-473e3fb82bd56a984dcf8936a51e3fd8affcb8f4.zip
Improve a few types, including cowboy_req:req()
Diffstat (limited to 'src/cowboy_metrics_h.erl')
-rw-r--r--src/cowboy_metrics_h.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy_metrics_h.erl b/src/cowboy_metrics_h.erl
index 559952b..3a2a8f0 100644
--- a/src/cowboy_metrics_h.erl
+++ b/src/cowboy_metrics_h.erl
@@ -106,6 +106,9 @@
}.
-export_type([metrics/0]).
+-type metrics_callback() :: fun((metrics()) -> any()).
+-export_type([metrics_callback/0]).
+
-record(state, {
next :: any(),
callback :: fun((metrics()) -> any()),