aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-07 09:59:36 +0200
committerLoïc Hoguin <[email protected]>2019-10-07 09:59:36 +0200
commiteaed06370287c9708d2bf359dd1c2da1d392364c (patch)
treef113de6c8f00cfd685623761aa505309fa18c2d5 /src/cowboy_http2.erl
parent3977f2b96fb8cc2164bfe28ee094b3e661a2fad9 (diff)
downloadcowboy-eaed06370287c9708d2bf359dd1c2da1d392364c.tar.gz
cowboy-eaed06370287c9708d2bf359dd1c2da1d392364c.tar.bz2
cowboy-eaed06370287c9708d2bf359dd1c2da1d392364c.zip
Document cowboy_metrics_h
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r--src/cowboy_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index f5d80ce..f85b78c 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -51,6 +51,8 @@
max_stream_buffer_size => non_neg_integer(),
max_stream_window_size => 0..16#7fffffff,
metrics_callback => cowboy_metrics_h:metrics_callback(),
+ metrics_req_filter => fun((cowboy_req:req()) -> map()),
+ metrics_resp_headers_filter => fun((cowboy:http_headers()) -> cowboy:http_headers()),
middlewares => [module()],
preface_timeout => timeout(),
proxy_header => boolean(),