diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http.erl | 2 | ||||
-rw-r--r-- | src/cowboy_http2.erl | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index b4a6995..4a9808f 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -44,6 +44,8 @@ max_method_length => non_neg_integer(), max_request_line_length => non_neg_integer(), 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()], proxy_header => boolean(), request_timeout => timeout(), 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(), |